[
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.