Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4668

REST API only accepts non-form content if content type of text/xml

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.9.1, 5.10.0
    • Component/s: Broker, Transport
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      If you don't format the POST content like "body=

      {content}

      ", the servlet will only read the body if the content type is text/xml. I'd like to submit JSON so it is not working. I've included a patch to open it up a bit.

        Attachments

        1. MessageServletSupport.java.patch
          0.7 kB
          Chris Robison

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                chrisdrobison Chris Robison
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: