-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with # character in request parameters #224
Comments
One problem I see is that the URL doesn't look valid:
Are you trying to set the value of the param If you are trying to define a fragment named |
Mmmm, it's true. I've checked that the AddressBuilder is using the java.net.URI class. So when new URI(...) is called, then the parse method throws a URISyntaxException... :_( But for us it's an unexpected behaviour because it works without prettyfaces :S |
I see that this is unexpected for you as it worked fine before. But PrettyFaces has to parse URLs for being able to modify them. And invalid URLs are a really problem in this case. We are using java.net.URI because it implements the URI RFC correctly and can be considered to do its job. Of cause it would be possible to create a custom parser, which is more fault tolerant, but I guess that's a lot of work. :( |
This may be solved by the recent fix for #195 - I just added some tests to verify. Looking good so far. |
Should be resolved in Rewrite 3.4.1.Final |
When I activate prettyfaces then I have the following error when trying to pass a request parameter with # character:
Any idea?
I’m using latest version of prettyfaces:
I also tried with last snapshot but I got the same error :S.
Thanks!
The text was updated successfully, but these errors were encountered: