-
Notifications
You must be signed in to change notification settings - Fork 75
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
Internal server error on requesting an unescaped URL #1
Comments
Thanks for reporting, I'll take a look later this week / weekend. |
Fixed, added a call to UriEncoder.encode. |
Encoding the URL again is not a solution. It appears that Play was bugged at the time of reporting this issue. The relevant report can be found here: https://play.lighthouseapp.com/projects/82401-play-20/tickets/285. Can you revert this commite98331e, and test again using the URLs I provided in the first post? I guess that reverting the commit also fixes #2, Let me know when you've deployed it. PS. I ran across this page, you might like it: http://playcheatsheet.appspot.com/show/ArtemMedeu/armed/play-cheatsheets |
Sorry, busy time - I don't have the time right now to test this, and I don't want to push it without testing. I'm not sure the bug you linked to is relevant, it is in Play 2, and I'm using Play 1 (entirely different codebase). |
Some characters in the request URI are causing trouble. I first noticed the bug on the space character. Using
%20
or+
yields the same error. Upon further investigation, I've found many other characters which break the service:"
(%22
) - Double quote%
(%25
) - Percent signExamples:
Current solution
The current method to get it to work is to escape the URL twice:
This looks awkward.
encodeURI
should not be needed.The text was updated successfully, but these errors were encountered: