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

IllegalArgumentException thrown if I have a MultivaluedMap parameter in multipart/mixed Content Type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.5.8, 2.6.5, 2.7.2
    • JAX-RS
    • None
    • Novice

    Description

      This issue looks like a regression of addressing https://issues.apache.org/jira/browse/CXF-3292. MultipartProvider would create a LinkedHashMap for a MultivaluedMap type parameter. As a result LinkedHashMap is not assignable to MultivaluedMap (same problem can be expected for any Map that is not assignable from LinkedHashMap) and IllegalArgumentException is thrown.

      Please review the attached patch (I believe that the intended fix of CXF-3292) and testcase.

      Attachments

        1. CXF-4697.patch
          4 kB
          William Tam

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            wtam William Tam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: