Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8353

MediaTypeHeaderProvider not handling all invalid media types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.4.0
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      According to https://tools.ietf.org/html/rfc2045#section-5.1 there are a lot of characters that are not allowed in the type or subtype fields of a MIME /MediaType. Currently, CXF only checks for '/' in the subtype.

      Instead it should be checking for:
      tspecials := "(" / ")" / "<" / ">" / "@" /
      "," / ";" / ":" / "\" / <">
      "/" / "[" / "]" / "?" / "="
      ; Must be in quoted-string,
      ; to use within parameter values

      Attachments

        Issue Links

          Activity

            People

              amccright Andy McCright
              amccright Andy McCright
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: