Re: non ASCI symbols in @URLMapping

Splash Forums PrettyFaces Users non ASCI symbols in @URLMapping Re: non ASCI symbols in @URLMapping

#20788

0swald
Participant

Latest snapshot prettyfaces-jsf2-3.2.1-20110402.070324-16.jar ruines even my working mapping:

java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in path at index 18: http://localhost/тест
com.ocpsoft.pretty.faces.url.URL.decodeSegment(URL.java:144)
com.ocpsoft.pretty.faces.url.URL.getDecodedSegments(URL.java:92)
com.ocpsoft.pretty.faces.url.URL.decode(URL.java:154)
com.ocpsoft.pretty.PrettyContext.<init>(PrettyContext.java:89)
com.ocpsoft.pretty.PrettyContext.newDetachedInstance(PrettyContext.java:174)
com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:72)
root cause

java.net.URISyntaxException: Illegal character in path at index 18: http://localhost/тест
java.net.URI$Parser.fail(URI.java:2809)
java.net.URI$Parser.checkChars(URI.java:2982)
java.net.URI$Parser.parseHierarchical(URI.java:3066)
java.net.URI$Parser.parse(URI.java:3014)
java.net.URI.<init>(URI.java:578)
com.ocpsoft.pretty.faces.url.URL.decodeSegment(URL.java:139)
com.ocpsoft.pretty.faces.url.URL.getDecodedSegments(URL.java:92)
com.ocpsoft.pretty.faces.url.URL.decode(URL.java:154)
com.ocpsoft.pretty.PrettyContext.<init>(PrettyContext.java:89)
com.ocpsoft.pretty.PrettyContext.newDetachedInstance(PrettyContext.java:174)
com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:72)

URI mentioned in stacktrace is not the one I’ve actually tried: http://localhost/myapp/test/тест

where myapp is context path and test is first part of mapping from my original post.