Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 10977 invoked from network); 25 Jun 2007 18:20:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 18:20:48 -0000 Received: (qmail 37272 invoked by uid 500); 25 Jun 2007 18:20:50 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 37245 invoked by uid 500); 25 Jun 2007 18:20:50 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 37232 invoked by uid 99); 25 Jun 2007 18:20:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 11:20:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 11:20:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1F535714187 for ; Mon, 25 Jun 2007 11:20:26 -0700 (PDT) Message-ID: <6968693.1182795626124.JavaMail.jira@brutus> Date: Mon, 25 Jun 2007 11:20:26 -0700 (PDT) From: "Jukka Zitting (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Assigned: (JCR-971) DocumentViewExportVisitor class incorrectly handles XML escaping for element names In-Reply-To: <3772094.1181742566111.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jukka Zitting reassigned JCR-971: --------------------------------- Assignee: Jukka Zitting > DocumentViewExportVisitor class incorrectly handles XML escaping for element names > ---------------------------------------------------------------------------------- > > Key: JCR-971 > URL: https://issues.apache.org/jira/browse/JCR-971 > Project: Jackrabbit > Issue Type: Bug > Components: contrib PMs > Affects Versions: 1.3 > Reporter: Alessandro Bologna > Assignee: Jukka Zitting > Priority: Trivial > > The method private static String escapeName(String name) should have the following test: > if ((i == 0) ? XMLChar.isNCNameStart(ch) : XMLChar.isNCName(ch)) { > changed into > if ((i == 0) ? !XMLChar.isNCNameStart(ch) :! XMLChar.isNCName(ch)) { > in order to properly escape the text (those two methods in XMLChar return true when the character is valid, not the other way around. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.