Ed Valdez-Guillen created AMQ-4659:
--------------------------------------
Summary: REST API MessageServlet does not accept JSON or plain
text content types in request
Key: AMQ-4659
URL: https://issues.apache.org/jira/browse/AMQ-4659
Project: ActiveMQ
Issue Type: Bug
Components: Broker, Connector
Affects Versions: 5.8.0
Environment: n/a
Reporter: Ed Valdez-Guillen
Priority: Minor
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).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira