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

MediaTypeHeaderProvider stores parameter values of Content-Type header as quoted strings if they're quoted in the header

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.3.1
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      If parameters of Content-Type header are quoted (e.g. boundary) then the whole quoted string is stored as a parameter value in MediaType instance.

      Example:
      Parsing the following header:

      code
      Content-Type: multipart/form-data;boundary="MrmiiyyJEqRYcIJyun5tMVIz70NuQ_nfD"
      code

      causes the boundary parameter in MediaType instance to have value "MrmiiyyJEqRYcIJyun5tMVIz70NuQ_nfD" instead of MrmiiyyJEqRYcIJyun5tMVIz70NuQ_nfD.

      This is a problem when an application with both CXF and Jersey is deployed on a server. If RuntimeDelegate from CXF is used in Jersey application MediaTypeHeaderProvider may create a MediaType instance (when working with multipart) Jersey is not able to work with (because of the quoted boundary value).

      For more details see: http://java.net/jira/browse/JERSEY-1420

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            michal.gajdos Michal Gajdos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: