From dev-return-8232-apmail-jackrabbit-dev-archive=jackrabbit.apache.org@jackrabbit.apache.org Thu Aug 03 17:44:52 2006 Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 16108 invoked from network); 3 Aug 2006 17:44:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2006 17:44:52 -0000 Received: (qmail 96697 invoked by uid 500); 3 Aug 2006 17:44:51 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 96666 invoked by uid 500); 3 Aug 2006 17:44:51 -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 96657 invoked by uid 99); 3 Aug 2006 17:44:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Aug 2006 10:44:51 -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; Thu, 03 Aug 2006 10:44:50 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D0274410021 for ; Thu, 3 Aug 2006 17:42:15 +0000 (GMT) Message-ID: <23352627.1154626935850.JavaMail.jira@brutus> Date: Thu, 3 Aug 2006 10:42:15 -0700 (PDT) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Updated: (JCR-482) DocViewSaxEventGenerator may generate non-NS-wellformed XML In-Reply-To: <9248058.1153231513961.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-482?page=all ] Julian Reschke updated JCR-482: ------------------------------- Attachment: JIRA-482.diff.txt Proposed patch (serializer remembers previously written namespace declarations and adds new ones when needed). > DocViewSaxEventGenerator may generate non-NS-wellformed XML > ----------------------------------------------------------- > > Key: JCR-482 > URL: http://issues.apache.org/jira/browse/JCR-482 > Project: Jackrabbit > Issue Type: Bug > Components: xml > Affects Versions: 0.9, 1.0, 1.0.1 > Environment: n/a > Reporter: Julian Reschke > Priority: Minor > Fix For: 1.1 > > Attachments: JIRA-482.diff.txt > > > The XML serialization code relies on the fact that all required prefix-to-uri mappings are known beforehand (actually, when serializing the root node). So there's an assumption that the permanent namespace registry will never change during serialization, which may be incorrect when another client adds namespace registrations while the XML export is in progress. > To fix this, "addNamespacePrefixes" should ensure that namespace declarations have been written for all prefixes used on the current node (node name + properties), potentially going back to the namespace resolver when needed. > (Should there be consensus for that change I'm happy to give it a try) -- 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