-
Notifications
You must be signed in to change notification settings - Fork 357
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
EncodingFilter handles 'Accept-Encoding' header with empty String awkwardly #4068
Comments
fixed |
This was referenced Jun 26, 2021
This was referenced Aug 5, 2021
This was referenced Sep 5, 2021
This was referenced Oct 4, 2021
This was referenced Oct 18, 2021
This was referenced Oct 21, 2021
Merged
Merged
Closed
This was referenced Oct 21, 2021
1 task
This was referenced Mar 7, 2022
This was referenced Mar 15, 2022
This was referenced Apr 17, 2022
This was referenced May 3, 2022
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The class org.glassfish.jersey.server.filter.EncodingFillter only checks if the list of values for the 'Accept-Encoding' header is empty but not if a value in the list is empty. A reader is used in ContentEncoding#fromString for this value and the method hasNext is called, but its result is unused. This leads to a ParseException when nextToken is called for an empty String.
The exception does not lead to errors as it is caught, but still it can lead to lots of unnecessary exceptions and logging output.
The text was updated successfully, but these errors were encountered: