Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD9709719 for ; Fri, 23 Sep 2011 10:26:48 +0000 (UTC) Received: (qmail 19323 invoked by uid 500); 23 Sep 2011 10:26:48 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 19256 invoked by uid 500); 23 Sep 2011 10:26:48 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 19232 invoked by uid 99); 23 Sep 2011 10:26:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 10:26:48 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2011 10:26:47 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0FBDEAA4AB for ; Fri, 23 Sep 2011 10:26:27 +0000 (UTC) Date: Fri, 23 Sep 2011 10:26:27 +0000 (UTC) From: "Thomas Themel (JIRA)" To: dev@activemq.apache.org Message-ID: <1283438764.5950.1316773587061.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <537442764.5944.1316773466121.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-3510) activemq-web MessageListenerServlet: Breaks with messages that contain XML MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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