activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Themel (JIRA)" <>
Subject [jira] [Updated] (AMQ-3510) AjaxServlet: Breaks with messages that contain XML
Date Fri, 23 Sep 2011 10:26:26 GMT


Thomas Themel updated AMQ-3510:

    Attachment: MessageListenerServlet.diff

Patch to wrap message contents in a CDATA secion

> AjaxServlet: Breaks with messages that contain XML
> --------------------------------------------------
>                 Key: AMQ-3510
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>            Reporter: Thomas Themel
>            Priority: Minor
>         Attachments: MessageListenerServlet.diff
> 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:


View raw message