Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-2820

POST request with multipart/form-data encoding stores wrong content type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 5.2.1.Final
    • Remote Protocols
    • None

    Description

      The REST server uses the Content-Type header of the POST request to determine the content type of the stored entry. But with Content-Type: multipart/form-data, each parameter can have its own content type (and multipart/form-data is definitely not any parameter's content type).

      This seems to be the way to do get the content type of each parameter: http://www.mkyong.com/webservices/jax-rs/file-upload-example-in-resteasy/

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: