Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 676 invoked from network); 23 Jan 2006 09:16:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 09:16:38 -0000 Received: (qmail 87243 invoked by uid 500); 23 Jan 2006 09:16:34 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 87166 invoked by uid 500); 23 Jan 2006 09:16:34 -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 87109 invoked by uid 99); 23 Jan 2006 09:16:34 -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; Mon, 23 Jan 2006 01:16:32 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 0D09C126 for ; Mon, 23 Jan 2006 10:16:11 +0100 (CET) Message-ID: <1162572151.1138007771051.JavaMail.jira@ajax.apache.org> Date: Mon, 23 Jan 2006 10:16:11 +0100 (CET) From: "Jean-Baptiste Quenot (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Assigned: (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 reassigned COCOON-1657: -------------------------------------------- Assign To: Jean-Baptiste Quenot (was: Cocoon Developers Team) > 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