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

Issues parsing default Chrome accept header

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 3.0.8.Final
    • jaxrs
    • None
    • Low

    Description

      I realized that doing a request directly with the browser RESTEasy fails parsing the mimetypes:

      Caused by: java.lang.IllegalArgumentException: Failure parsing MediaType string: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/;q=0.8
      at org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate.parse(MediaTypeHeaderDelegate.java:135) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      at org.jboss.resteasy.plugins.delegates.MediaTypeHeaderDelegate.fromString(MediaTypeHeaderDelegate.java:18) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      at org.jboss.resteasy.core.StringParameterInjector.extractValue(StringParameterInjector.java:313) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      at org.jboss.resteasy.core.StringParameterInjector.extractValues(StringParameterInjector.java:271) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      at org.jboss.resteasy.core.HeaderParamInjector.inject(HeaderParamInjector.java:28) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      at org.jboss.resteasy.core.MethodInjectorImpl.injectArguments(MethodInjectorImpl.java:89) ~[resteasy-jaxrs-3.0.8.Final.jar:na]
      ... 53 common frames omitted

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            wikier_jira Sergio Fernández (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: