jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-482) DocViewSaxEventGenerator may generate non-NS-wellformed XML
Date Tue, 18 Jul 2006 14:05:13 GMT
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: 1.1
         Environment: n/a
            Reporter: Julian Reschke
            Priority: Minor

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


View raw message