Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-3697

Improve handling of broken accept headers in MediaTypeHeaderDelegate

XMLWordPrintable

      Previously, a "broken" MIME-type in an access header could trigger an StringIndexOutOfBoundsException during MediaTypeHeaderDelegate.parse(..) instead of the more suitable IllegalArgumentException.

      Example: "Accept: x; /x"

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

      Fixes #36159

            Unassigned Unassigned
            olubyans@redhat.com Alexey Loubyansky
            Michal Vavrik Michal Vavrik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: