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.