Skip to content
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

[RESTEASY-3384] Improve parsing of malformed MediaTypes in MediaTypeH… #3823

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

jamezp
Copy link
Contributor

@jamezp jamezp commented Oct 5, 2023

…eaderDelegate

Previously, a "broken" MIME-type could trigger an StringIndexOutOfBoundsException instead of the more suitable IllegalArgumentException.

Example: "Accept: x; /x"

This PR now throws an IllegalArgumentException in case of a broken MIME-type.

…eaderDelegate

Previously, a "broken" MIME-type could trigger an StringIndexOutOfBoundsException
instead of the more suitable IllegalArgumentException.

Example: "Accept: x; /x"

This PR now throws an IllegalArgumentException in case of a broken MIME-type.
@jamezp jamezp merged commit 74c5bd7 into resteasy:5.0 Oct 5, 2023
7 of 8 checks passed
@jamezp jamezp deleted the back-ports-5.0 branch October 31, 2023 01:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants