jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-971) DocumentViewExportVisitor class incorrectly handles XML escaping for element names
Date Fri, 20 Jul 2007 21:57:06 GMT

     [ https://issues.apache.org/jira/browse/JCR-971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jukka Zitting resolved JCR-971.
-------------------------------

    Resolution: Fixed

Fix applied in revision 558164. Thanks!

> 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
>            Assignee: Jukka Zitting
>            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