Branch: refs/heads/main
Home:
https://github.com/resteasy/resteasy
Commit: 5d80eab9b04d21a7cdb20b7cbe4e5f4af2bf1d20
https://github.com/resteasy/resteasy/commit/5d80eab9b04d21a7cdb20b7cbe4e5...
Author: Thomas Darimont <thomas.darimont(a)googlemail.com>
Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths:
M
resteasy-core/src/main/java/org/jboss/resteasy/plugins/delegates/MediaTypeHeaderDelegate.java
A
resteasy-core/src/test/java/org/jboss/resteasy/plugins/delegates/MediaTypeHeaderDelegateTest.java
Log Message:
-----------
[RESTEASY-3384] Improve parsing of malformed MediaTypes in MediaTypeHeaderDelegate
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.
Commit: b8e80ed8bdde807cf3dc12c7b13ec25ae60088a2
https://github.com/resteasy/resteasy/commit/b8e80ed8bdde807cf3dc12c7b13ec...
Author: James R. Perkins <jperkins(a)redhat.com>
Date: 2023-09-26 (Tue, 26 Sep 2023)
Changed paths:
M
resteasy-core/src/main/java/org/jboss/resteasy/plugins/delegates/MediaTypeHeaderDelegate.java
A
resteasy-core/src/test/java/org/jboss/resteasy/plugins/delegates/MediaTypeHeaderDelegateTest.java
Log Message:
-----------
Merge pull request #3803 from
thomasdarimont/issues/RESTEASY-3384-Fix-MediaTypeHeaderDelegate-parseing
[RESTEASY-3384] Improve parsing of malformed MediaTypes in MediaTypeHeaderDelegate
Compare:
https://github.com/resteasy/resteasy/compare/5887d83d0617...b8e80ed8bdde