{"action":"created","issue":{"url":"https://api.github.com/repos/yegor256/netbout/issues/877","repository_url":"https://api.github.com/repos/yegor256/netbout","labels_url":"https://api.github.com/repos/yegor256/netbout/issues/877/labels{/name}","comments_url":"https://api.github.com/repos/yegor256/netbout/issues/877/comments","events_url":"https://api.github.com/repos/yegor256/netbout/issues/877/events","html_url":"https://github.com/yegor256/netbout/issues/877","id":122681683,"number":877,"title":"Internal Application Error when path contains \"[\" or \"]\" character","user":{"login":"mkordas","id":5467276,"avatar_url":"https://avatars.githubusercontent.com/u/5467276?v=3","gravatar_id":"","url":"https://api.github.com/users/mkordas","html_url":"https://github.com/mkordas","followers_url":"https://api.github.com/users/mkordas/followers","following_url":"https://api.github.com/users/mkordas/following{/other_user}","gists_url":"https://api.github.com/users/mkordas/gists{/gist_id}","starred_url":"https://api.github.com/users/mkordas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkordas/subscriptions","organizations_url":"https://api.github.com/users/mkordas/orgs","repos_url":"https://api.github.com/users/mkordas/repos","events_url":"https://api.github.com/users/mkordas/events{/privacy}","received_events_url":"https://api.github.com/users/mkordas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yegor256/netbout/labels/30%20mins","name":"30 mins","color":"eb6421"},{"url":"https://api.github.com/repos/yegor256/netbout/labels/@jhyle","name":"@jhyle","color":"009801"},{"url":"https://api.github.com/repos/yegor256/netbout/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/yegor256/netbout/labels/DEV","name":"DEV","color":"bfd4f3"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/yegor256/netbout/milestones/2","html_url":"https://github.com/yegor256/netbout/milestones/3.1","labels_url":"https://api.github.com/repos/yegor256/netbout/milestones/2/labels","id":1114566,"number":2,"title":"3.1","description":"Minor fixes after 3.0 release","creator":{"login":"yegor256","id":526301,"avatar_url":"https://avatars.githubusercontent.com/u/526301?v=3","gravatar_id":"","url":"https://api.github.com/users/yegor256","html_url":"https://github.com/yegor256","followers_url":"https://api.github.com/users/yegor256/followers","following_url":"https://api.github.com/users/yegor256/following{/other_user}","gists_url":"https://api.github.com/users/yegor256/gists{/gist_id}","starred_url":"https://api.github.com/users/yegor256/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yegor256/subscriptions","organizations_url":"https://api.github.com/users/yegor256/orgs","repos_url":"https://api.github.com/users/yegor256/repos","events_url":"https://api.github.com/users/yegor256/events{/privacy}","received_events_url":"https://api.github.com/users/yegor256/received_events","type":"User","site_admin":false},"open_issues":87,"closed_issues":99,"state":"open","created_at":"2015-05-18T03:45:11Z","updated_at":"2016-02-05T13:33:49Z","due_on":"2015-11-30T22:00:00Z","closed_at":null},"comments":17,"created_at":"2015-12-17T07:52:14Z","updated_at":"2016-02-06T09:28:05Z","closed_at":null,"body":"To reproduce put `[` or `]` at any place to path, e.g. go to `http://www.netbout.com/[` and see the following error:\r\n![image](https://cloud.githubusercontent.com/assets/5467276/11864189/bce54560-a49a-11e5-8a6b-a73282154e0d.png)\r\n\r\nStacktrace:\r\n```\r\njava.lang.IllegalArgumentException: Illegal character in path at index 23: http://www.netbout.com/[\r\n\tat java.net.URI.create(URI.java:859)\r\n\tat org.takes.misc.Href.(Href.java:73)\r\n\tat org.takes.rq.RqHref$Base.href(RqHref.java:72)\r\n\tat org.takes.facets.auth.PsByFlag.enter(PsByFlag.java:101)\r\n\tat org.takes.facets.auth.PsChain.enter(PsChain.java:70)\r\n\tat com.netbout.rest.PsTwice.enter(PsTwice.java:70)\r\n\tat org.takes.facets.auth.TkAuth.act(TkAuth.java:86)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.facets.forward.TkForward.act(TkForward.java:68)\r\n\tat org.takes.facets.fallback.TkFallback.route(TkFallback.java:80)\r\n\tat org.takes.facets.fallback.TkFallback.access$000(TkFallback.java:50)\r\n\tat org.takes.facets.fallback.TkFallback$1.act(TkFallback.java:62)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.facets.flash.TkFlash.act(TkFlash.java:100)\r\n\tat org.takes.tk.TkMeasured$1.act(TkMeasured.java:67)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.tk.TkVersioned$1.act(TkVersioned.java:72)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.tk.TkWithHeaders$1.act(TkWithHeaders.java:71)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.tk.TkWrap.act(TkWrap.java:61)\r\n\tat org.takes.http.BkBasic.print(BkBasic.java:99)\r\n\tat org.takes.http.BkBasic.accept(BkBasic.java:77)\r\n\tat org.takes.http.BkSafe.accept(BkSafe.java:58)\r\n\tat org.takes.http.BkTimeable.accept(BkTimeable.java:94)\r\n\tat org.takes.http.BkParallel$1.run(BkParallel.java:97)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\nCaused by: java.net.URISyntaxException: Illegal character in path at index 23: http://www.netbout.com/[\r\n\tat java.net.URI$Parser.fail(URI.java:2829)\r\n\tat java.net.URI$Parser.checkChars(URI.java:3002)\r\n\tat java.net.URI$Parser.parseHierarchical(URI.java:3086)\r\n\tat java.net.URI$Parser.parse(URI.java:3034)\r\n\tat java.net.URI.(URI.java:595)\r\n\tat java.net.URI.create(URI.java:857)\r\n\t... 29 more\r\n```\r\nI would expect redirect to home page without error or with information that path is invalid."},"comment":{"url":"https://api.github.com/repos/yegor256/netbout/issues/comments/180725314","html_url":"https://github.com/yegor256/netbout/issues/877#issuecomment-180725314","issue_url":"https://api.github.com/repos/yegor256/netbout/issues/877","id":180725314,"user":{"login":"karato","id":6312765,"avatar_url":"https://avatars.githubusercontent.com/u/6312765?v=3","gravatar_id":"","url":"https://api.github.com/users/karato","html_url":"https://github.com/karato","followers_url":"https://api.github.com/users/karato/followers","following_url":"https://api.github.com/users/karato/following{/other_user}","gists_url":"https://api.github.com/users/karato/gists{/gist_id}","starred_url":"https://api.github.com/users/karato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karato/subscriptions","organizations_url":"https://api.github.com/users/karato/orgs","repos_url":"https://api.github.com/users/karato/repos","events_url":"https://api.github.com/users/karato/events{/privacy}","received_events_url":"https://api.github.com/users/karato/received_events","type":"User","site_admin":false},"created_at":"2016-02-06T09:28:04Z","updated_at":"2016-02-06T09:28:04Z","body":"> @karato takes#548 is in progress, but we need more time\n\n@jhyle of course, take your time"}}