[ 
https://issues.apache.org/jira/browse/AMQ-3510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Themel updated AMQ-3510:
-------------------------------

    Description: The XML format/code used by MessageListenerServlet 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. 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.  (was: The XML format/code used by 
MessageListenerServlet 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 lo
 ng run.)

> activemq-web MessageListenerServlet: 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
>         Attachments: MessageListenerServlet.diff
>
>
> The XML format/code used by MessageListenerServlet 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. 
> 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

        

Reply via email to