Reply To: Problem with # character in request parameters

Splash Forums PrettyFaces Users Problem with # character in request parameters Reply To: Problem with # character in request parameters

#27362

jllado
Participant

I’m afraid I got the same error with the snapshot:

java.lang.IllegalArgumentException: [/home.xhtml?agency=dit##266] is not a valid URL fragment. Consider encoding relevant portions of the URL with [class org.ocpsoft.urlbuilder.util.Encoder]
	at org.ocpsoft.urlbuilder.AddressBuilder.create(AddressBuilder.java:89) ~[rewrite-addressbuilder-3.0.0-20151105.171214-75.jar:3.0.0-SNAPSHOT]
	at org.ocpsoft.rewrite.servlet.impl.HttpRewriteWrappedResponse.encodeRedirectURL(HttpRewriteWrappedResponse.java:381) ~[rewrite-servlet-3.0.0-20151105.171309-72.jar:3.0.0-SNAPSHOT]
	at org.apache.myfaces.context.servlet.ServletExternalContextImpl.encodeRedirectURL(ServletExternalContextImpl.java:385) ~[myfaces-impl-2.2.9.jar:2.2.9]
	at javax.faces.context.ExternalContextWrapper.encodeRedirectURL(ExternalContextWrapper.java:96) ~[myfaces-api-2.2.9.jar:2.2.9]
	at org.apache.myfaces.application.ViewHandlerImpl.getRedirectURL(ViewHandlerImpl.java:174) ~[myfaces-impl-2.2.9.jar:2.2.9]
	at org.apache.webbeans.jsf.ConversationAwareViewHandler.getRedirectURL(ConversationAwareViewHandler.java:89) ~[openwebbeans-jsf-1.6.2.jar:1.6.2]
	at org.ocpsoft.rewrite.faces.RewriteViewHandler.getRedirectURL(RewriteViewHandler.java:183) ~[rewrite-integration-faces-3.0.0-20151105.171238-73.jar:3.0.0-SNAPSHOT]
	at javax.faces.application.ViewHandlerWrapper.getRedirectURL(ViewHandlerWrapper.java:126) ~[myfaces-api-2.2.9.jar:2.2.9]
	at javax.faces.application.ViewHandlerWrapper.getRedirectURL(ViewHandlerWrapper.java:126) ~[myfaces-api-2.2.9.jar:2.2.9]
	at org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:185) ~[myfaces-impl-2.2.9.jar:2.2.9]
	at org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:122) ~[myfaces-impl-2.2.9.jar:2.2.9]

So is it a bug?

Thanks!