You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Thomas Themel (JIRA)" <ji...@apache.org> on 2011/09/23 12:24:26 UTC

[jira] [Created] (AMQ-3510) AjaxServlet: Breaks with messages that contain XML

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

        

[jira] [Updated] (AMQ-3510) activemq-web MessageListenerServlet: Breaks with messages that contain XML

Posted by "Thomas Themel (JIRA)" <ji...@apache.org>.
     [ 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 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.  (was: 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.)
        Summary: activemq-web MessageListenerServlet: Breaks with messages that contain XML  (was: AjaxServlet: Breaks with messages that contain XML)

> 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 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

       

[jira] [Updated] (AMQ-3510) activemq-web MessageListenerServlet: Breaks with messages that contain XML

Posted by "Thomas Themel (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Updated] (AMQ-3510) AjaxServlet: Breaks with messages that contain XML

Posted by "Thomas Themel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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: 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 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