AjaxServlet: Breaks with messages that contain XML
--------------------------------------------------
Key: AMQ-3510
URL: https://issues.apache.org/jira/browse/AMQ-3510
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.5.0
Reporter: Thomas Themel
Priority: Minor
The XML format/code used by AjaxMessageServlet to encode text messages for HTTP
transfer is very brittle and easily breaks when e.g. a text message contains
embedded XML data. The attached patch slightly improves matters by wrapping the
contents into a CDATA section to correctly handle embedded XML to work around
this. It is still far from perfect however (has to strip out XML processing
instructions) & should probably replaced by DOM code instead of String
manipulation for the long run.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira