jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Bologna (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-971) DocumentViewExportVisitor class incorrectly handles XML escaping for element names
Date Wed, 13 Jun 2007 13:49:26 GMT
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.


Mime
View raw message