{"action":"created","issue":{"url":"https://api.github.com/repos/playframework/playframework/issues/4933","labels_url":"https://api.github.com/repos/playframework/playframework/issues/4933/labels{/name}","comments_url":"https://api.github.com/repos/playframework/playframework/issues/4933/comments","events_url":"https://api.github.com/repos/playframework/playframework/issues/4933/events","html_url":"https://github.com/playframework/playframework/issues/4933","id":98707366,"number":4933,"title":"[2.4.2] Two slashes in simple URL cause 400 response instead of a 404 one","user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-03T09:42:10Z","updated_at":"2015-08-03T11:52:13Z","closed_at":null,"body":"With a simple play-java project access http://127.0.0.1:9000// (two slashed at the end).\r\nYou will get\r\n> Bad request\r\n> For request 'GET //' [**Expected authority at index 2: //**]\r\n\r\nActually it should be a \"404 Not Found\" response.\r\n\r\nAlso interesting when adding\r\n```\r\nGET     //                          controllers.Application.twoSlashes()\r\nGET     ///                         controllers.Application.threeSlashes()\r\n```\r\nto the routes file and accessing http://127.0.0.1:9000/// (three slashes) you hit the `oneSlash()` action.\r\nWhen accessing http://127.0.0.1:9000//// (four slashes) you hit the `twoSlash()` action."},"comment":{"url":"https://api.github.com/repos/playframework/playframework/issues/comments/127207638","html_url":"https://github.com/playframework/playframework/issues/4933#issuecomment-127207638","issue_url":"https://api.github.com/repos/playframework/playframework/issues/4933","id":127207638,"user":{"login":"mkurz","id":644927,"avatar_url":"https://avatars.githubusercontent.com/u/644927?v=3","gravatar_id":"","url":"https://api.github.com/users/mkurz","html_url":"https://github.com/mkurz","followers_url":"https://api.github.com/users/mkurz/followers","following_url":"https://api.github.com/users/mkurz/following{/other_user}","gists_url":"https://api.github.com/users/mkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkurz/subscriptions","organizations_url":"https://api.github.com/users/mkurz/orgs","repos_url":"https://api.github.com/users/mkurz/repos","events_url":"https://api.github.com/users/mkurz/events{/privacy}","received_events_url":"https://api.github.com/users/mkurz/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T11:52:13Z","updated_at":"2015-08-03T11:52:13Z","body":"One more observation:\r\nAdding\r\n```\r\nGET     /subpage                         controllers.Application.anypage()\r\n```\r\nand accessing http://127.0.0.1:9000/subpage// (with two slashes at the end) does not give us a 400 but the (in my opinion correct) \"404 Not Found\" response.\r\n\r\nSo the behavour also isn't consistent as well as the only case where we get the 400 is on the index route (/) but not on subroutes."}}