jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxim <maxi...@anahoret.com>
Subject TCK question: XML export
Date Thu, 21 Apr 2005 14:39:35 GMT
Hello jackrabbit-dev.

In the file:
/jackrabbit/src/test/org/apache/jackrabbit/test/api/SysViewContentHandler.java

from line 453 it says:
------------------------------------------------------
        if (node.hasProperty(propElem.name)) {

/* ... skipped ... */

        }
        // given node has no property with the name given by the prop element
        else {
            checkCondition("Property element " + propElem.name
                    + " found but node " + nodeElem.node.getPath() +
                    " does not have a property with that name", false);
        }
------------------------------------------------------

where propElem.name was read from XML before.

According to section "6.4.3 Escaping of JCR Names" of the JCR
specification, element names in XML may happen to be escaped versions
of actual repository names and thus Node.hasProperty() will not
recognize them until such name is decoded back to it's original form.

How the test in question is supposed to handle such escaped names is
not clear for me. Please advise.


Thank you.

-- 
Best regards, Maxim.
Anahoret Team.


Mime
View raw message