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

REST API MessageServlet does not accept JSON or plain text content types in request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.10.0
    • Component/s: Broker, Connector
    • Labels:
      None
    • Environment:

      n/a

      Description

      Currently, the MessageServlet that ships with ActiveMQ (used by the REST API) ignores the body of HTTP POST requests if the content type is NOT "text/xml". This results in empty messages being sent to target destinations.

      For my particular needs, it would be nice if "text/plain" were allowed because I'm hoping to use the REST API for posting text messages from a VXML voice/web application. However, the VXML platform I'm using only supports "text/plain" content type (not XML or JSON) and the VXML standard itself does not specify which content type(s) should be supported in this case.

      Anyway, I'm not sure if supporting the "text/plain" content type conflicts with REST principles, but I believe at a minimum "application/json" should be allowed along with "text/xml" in the POST request (not just the response).

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              jersey355 Ed Valdez-Guillen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: