Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3387

Accept-Language header not parsed correctly for language subtags, variants, extension and private subtags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.8.Final, 7.0.0.Alpha1
    • 6.2.5.Final
    • Core
    • None
    • Hide
      1. run the attached reproducer application with ./mvnw clean compile quarkus:dev
      2. either use the included tests.sh script to run some curl commands, or craft your own with an Accept-Language header for the URL http://localhost:8080/hello
      3. note the response to see if the parsed Locale produces the same language tag as the given header
      Show
      run the attached reproducer application with ./mvnw clean compile quarkus:dev either use the included  tests.sh  script to run some  curl  commands, or craft your own with an  Accept-Language  header for the URL  http://localhost:8080/hello note the response to see if the parsed Locale produces the same language tag as the given header
    • User Experience

      Same as https://github.com/quarkusio/quarkus/issues/36227 with RESTEasy Reactive in Quarkus - the Accept-Language header is not parsed correctly for all cases covered in https://www.rfc-editor.org/rfc/rfc9110#language.tags, with some examples from https://www.w3.org/International/articles/language-tags/.

      I also noticed that the tests for parsing the header are assuming case sensitivity, where https://www.rfc-editor.org/rfc/rfc5646.html#section-2.1.1 specifies it should be treated as case insensitive.

              jperkins-rhn James Perkins
              nderwin Nathan Erwin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: