Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 42081 invoked from network); 13 Jun 2007 13:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 13:49:51 -0000 Received: (qmail 17770 invoked by uid 500); 13 Jun 2007 13:49:52 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 17748 invoked by uid 500); 13 Jun 2007 13:49:52 -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 17703 invoked by uid 99); 13 Jun 2007 13:49:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 06:49:51 -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; Wed, 13 Jun 2007 06:49:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1BF1B71418F for ; Wed, 13 Jun 2007 06:49:26 -0700 (PDT) Message-ID: <3772094.1181742566111.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 06:49:26 -0700 (PDT) From: "Alessandro Bologna (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-971) DocumentViewExportVisitor class incorrectly handles XML escaping for element names MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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.