getNamespaceURI() implementation in ODFDOM is not aware of duplicate namespace 
prefixes
---------------------------------------------------------------------------------------

                 Key: ODFTOOLKIT-302
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-302
             Project: ODF Toolkit
          Issue Type: Bug
          Components: odfdom, unittest
    Affects Versions: 0.8.8
         Environment: Ubuntu 11.04 64 bit, Intel i5, OpenJDK 1.6.0_20
            Reporter: Ashok Hariharan
            Assignee: Devin Han
             Fix For: 0.8.8


The getNamespaceURI() implementation in OdfFileDom is not aware of duplicate 
namespace prefixes. It is aware only of the default namespace prefixes, despite 
there being support for duplicate namespace prefixes in the implementation of 
OdfFileDom.

I am submitting a patched test case "xpathtest-case-patch.txt" and the 
corresponding odt file used by the test.

To simulate the problem --

1) apply the patch xpathtest-case-patch.txt on the ODFDOM source
2) put the XPathTest-duplicate-prefix.odt in odfdom/src/test/resources
3) Run the src/test/java/org/odftoolkit/odfdom/dom/XPathTest.java unit test. It 
fails.
4) apply the patch odffiledom-patch.txt on OdfFileDom and run the unit test 
again. It passes.

I have added explanatory comments in the patched unit test and the patched 
getNamespaceURI().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to