Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 72834 invoked from network); 18 Aug 2006 12:45:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Aug 2006 12:45:19 -0000 Received: (qmail 14431 invoked by uid 500); 18 Aug 2006 12:45:18 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 14233 invoked by uid 500); 18 Aug 2006 12:45:17 -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 14224 invoked by uid 99); 18 Aug 2006 12:45:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Aug 2006 05:45:17 -0700 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; Fri, 18 Aug 2006 05:45:16 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E82197142C7 for ; Fri, 18 Aug 2006 12:42:17 +0000 (GMT) Message-ID: <31092918.1155904937948.JavaMail.jira@brutus> Date: Fri, 18 Aug 2006 05:42:17 -0700 (PDT) From: "Stefan Guggisberg (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-543) DocViewSAXEventGenerator produces invalid SAX stream In-Reply-To: <25882995.1155840797494.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-543?page=all ] Stefan Guggisberg resolved JCR-543. ----------------------------------- Resolution: Fixed fixed in svn r432563 thanks for reporting this isssue! > 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 > Assigned To: Stefan Guggisberg > > 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