-
Notifications
You must be signed in to change notification settings - Fork 355
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
[JerseyWebTarget] QueryParam not complete encoded #5249
Comments
Do you have new info? |
The actual problem is the Now there are two options.
The first approach brings additional complexity and open questions.
|
What exactly is the Jersey code you use? |
This was our code:
|
Hello,
I have to report that I noticed that the WebTarget from Jersey Client (Version 2.37) is not encoding query parameters correctly.
We are using it to send a password and that is how we noticed, that something is happening. Currently, we encode the password before we set it as query parameters.
An exception is also thrown:
java.lang.IllegalArgumentException: Illegal character ";" at position 76 is not allowed as a part of a name in a path template "UserLogin=(MYLOGIN)&Password=%C3%98%C3%92%C3%8C%C3%A9%C2%A2%C3%A2%5Bi{ùÁe;ª3jË6ð1nLB/X¢.
Please notice that (MYLOGIN) is not the correct UserLogin and the correct UserLogin was replaced in order to post this issue.
Example:
ØÒÌé¢â[i{ùÁe;ª3jË6ð1nLB/X¢
%C3%98%C3%92%C3%8C%C3%A9%C2%A2%C3%A2%5Bi{ùÁe;ª3jË6ð1nLB/X¢
%C3%98%C3%92%C3%8C%C3%A9%C2%A2%C3%A2%5Bi%7B%C3%B9%C3%81e%3B%C2%AA3j%C3%8B6%C3%B01nLB%2FX%C2%A2
As you see, JettyWebTarget is not encoding the query parameter to 100%.
Please check and let me know if this issue was not opened in the correct forum. I also searched, but could not find another issue related to this problem.
Best regards
The text was updated successfully, but these errors were encountered: