{"action":"created","issue":{"url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/100","repository_url":"https://api.github.com/repos/mvc-spec/mvc-spec","labels_url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/100/comments","events_url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/100/events","html_url":"https://github.com/mvc-spec/mvc-spec/issues/100","id":256499983,"number":100,"title":"Clarify POST-redirect-GET status code","user":{"login":"lefloh","id":1819274,"avatar_url":"https://avatars2.githubusercontent.com/u/1819274?v=4","gravatar_id":"","url":"https://api.github.com/users/lefloh","html_url":"https://github.com/lefloh","followers_url":"https://api.github.com/users/lefloh/followers","following_url":"https://api.github.com/users/lefloh/following{/other_user}","gists_url":"https://api.github.com/users/lefloh/gists{/gist_id}","starred_url":"https://api.github.com/users/lefloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefloh/subscriptions","organizations_url":"https://api.github.com/users/lefloh/orgs","repos_url":"https://api.github.com/users/lefloh/repos","events_url":"https://api.github.com/users/lefloh/events{/privacy}","received_events_url":"https://api.github.com/users/lefloh/received_events","type":"User","site_admin":false},"labels":[{"id":328021150,"url":"https://api.github.com/repos/mvc-spec/mvc-spec/labels/bug","name":"bug","color":"fc2929","default":true},{"id":328021153,"url":"https://api.github.com/repos/mvc-spec/mvc-spec/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/mvc-spec/mvc-spec/milestones/4","html_url":"https://github.com/mvc-spec/mvc-spec/milestone/4","labels_url":"https://api.github.com/repos/mvc-spec/mvc-spec/milestones/4/labels","id":3105515,"number":4,"title":"1.0-pfd","description":"Proposed Final Draft","creator":{"login":"chkal","id":159245,"avatar_url":"https://avatars2.githubusercontent.com/u/159245?v=4","gravatar_id":"","url":"https://api.github.com/users/chkal","html_url":"https://github.com/chkal","followers_url":"https://api.github.com/users/chkal/followers","following_url":"https://api.github.com/users/chkal/following{/other_user}","gists_url":"https://api.github.com/users/chkal/gists{/gist_id}","starred_url":"https://api.github.com/users/chkal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chkal/subscriptions","organizations_url":"https://api.github.com/users/chkal/orgs","repos_url":"https://api.github.com/users/chkal/repos","events_url":"https://api.github.com/users/chkal/events{/privacy}","received_events_url":"https://api.github.com/users/chkal/received_events","type":"User","site_admin":false},"open_issues":17,"closed_issues":1,"state":"open","created_at":"2018-02-11T12:30:49Z","updated_at":"2018-02-12T10:33:41Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-09-10T10:28:38Z","updated_at":"2018-02-12T12:23:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Currently the [spec states about the PRG pattern][1]:\r\n\r\n>In either case, the HTTP status code returned is 302 and relative paths are resolved \r\nrelative to the application path\r\n\r\nI'd think that `303 See other` is the correct status code. This is also what Ozark is currently returning when you use `redirect:/foo`. \r\n\r\nBut there's also a test example [where explicitly `302 Found` is used][2] so I'm unsure if this was intended.\r\n\r\n [1]: https://github.com/mvc-spec/mvc-spec/blob/master/spec/chapters/controllers.tex#L178\r\n [2]: https://github.com/mvc-spec/ozark/blob/master/test/redirect/src/main/java/org/mvcspec/ozark/test/redirect/RedirectController.java#L58"},"comment":{"url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/comments/364907720","html_url":"https://github.com/mvc-spec/mvc-spec/issues/100#issuecomment-364907720","issue_url":"https://api.github.com/repos/mvc-spec/mvc-spec/issues/100","id":364907720,"user":{"login":"lefloh","id":1819274,"avatar_url":"https://avatars2.githubusercontent.com/u/1819274?v=4","gravatar_id":"","url":"https://api.github.com/users/lefloh","html_url":"https://github.com/lefloh","followers_url":"https://api.github.com/users/lefloh/followers","following_url":"https://api.github.com/users/lefloh/following{/other_user}","gists_url":"https://api.github.com/users/lefloh/gists{/gist_id}","starred_url":"https://api.github.com/users/lefloh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lefloh/subscriptions","organizations_url":"https://api.github.com/users/lefloh/orgs","repos_url":"https://api.github.com/users/lefloh/repos","events_url":"https://api.github.com/users/lefloh/events{/privacy}","received_events_url":"https://api.github.com/users/lefloh/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T12:23:04Z","updated_at":"2018-02-12T12:23:04Z","author_association":"CONTRIBUTOR","body":"I like your second proposal. I wouldn't force `302` as default as HTTP 1.1 is 19 years old by now.\r\n\r\nJAX-RS also [suggests to use a 303 for PRG](https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/core/Response.html#seeOther-java.net.URI-):\r\n\r\n>public static Response.ResponseBuilder seeOther(URI location)\r\n>\r\n>Create a new ResponseBuilder for a redirection. Used in the redirect-after-POST (aka POST/redirect/GET) pattern.\r\n"}}
{"actor":{"display_login":"lefloh"}}