Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 44375 invoked from network); 3 Feb 2006 17:54:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Feb 2006 17:54:29 -0000 Received: (qmail 20722 invoked by uid 500); 3 Feb 2006 17:54:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 20414 invoked by uid 500); 3 Feb 2006 17:54:26 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 20401 invoked by uid 99); 3 Feb 2006 17:54:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Feb 2006 09:54:24 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id D5138CB for ; Fri, 3 Feb 2006 18:54:03 +0100 (CET) Message-ID: <466663236.1138989243870.JavaMail.jira@ajax.apache.org> Date: Fri, 3 Feb 2006 18:54:03 +0100 (CET) From: "Jean-Baptiste Quenot (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Closed: (COCOON-1657) VelocityGenerator: error when sending string containing ampersand In-Reply-To: <572674938.1130157655543.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1657?page=all ] Jean-Baptiste Quenot closed COCOON-1657: ---------------------------------------- Resolution: Won't Fix Closing bug, as no feedback was received. Please reopen if this is still an issue. > VelocityGenerator: error when sending string containing ampersand > ----------------------------------------------------------------- > > Key: COCOON-1657 > URL: http://issues.apache.org/jira/browse/COCOON-1657 > Project: Cocoon > Type: Bug > Components: Blocks: Velocity > Versions: 2.1.7 > Reporter: Andreas Deininger > Assignee: Jean-Baptiste Quenot > > Take this flowscript: > function velotest() { > cocoon.sendPage("abstract.vm", { "test" : "vm&vm" } ); > } > With abstract.vm being an velocity template processed by the Velocity Generator: > > $test > You receive the following error, due to the occurence of the > ampersand-sign in the "vm&vm" string:: > An Error Occurred: The reference to entity "vm" must end with the ';' delimiter. > This seems to be due to the fact that the sent value is not escaped, i.e. & remains & and does not get converted to & in the resulting XML. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira