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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.8.0
    • 5.9.1, 5.10.0
    • Broker, Transport
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: