From dev-return-8495-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Aug 17 18:56:53 2006 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 43831 invoked from network); 17 Aug 2006 18:56:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Aug 2006 18:56:53 -0000 Received: (qmail 93065 invoked by uid 500); 17 Aug 2006 18:56:46 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 92942 invoked by uid 500); 17 Aug 2006 18:56:44 -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 92898 invoked by uid 99); 17 Aug 2006 18:56:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Aug 2006 11:56:44 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 797B27142D4 for ; Thu, 17 Aug 2006 18:53:17 +0000 (GMT) Message-ID: <25882995.1155840797494.JavaMail.jira@brutus> Date: Thu, 17 Aug 2006 11:53:17 -0700 (PDT) From: "Jaka Jaksic (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-543) DocViewSAXEventGenerator produces invalid SAX stream 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 DocViewSAXEventGenerator produces invalid SAX stream ---------------------------------------------------- Key: JCR-543 URL: http://issues.apache.org/jira/browse/JCR-543 Project: Jackrabbit Issue Type: Bug Components: xml Affects Versions: 1.0.1 Reporter: Jaka Jaksic ISO9075.encode() is called twice in DocViewSAXEventGenerator.leaving(), which produces invalid endElement events. Faulty block of code (note the encode method called twice): // encode node name to make sure it's a valid xml name name = ISO9075.encode(name); // element name String elemName; if (node.getDepth() == 0) { // root node needs a name elemName = jcrRoot; } else { // encode node name to make sure it's a valid xml name elemName = ISO9075.encode(name); } -- 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