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

DaLi Liu updated ODFTOOLKIT-302:
--------------------------------

    Fix Version/s: 0.6-incubating
    
> 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: odfdom-0.8.8
>         Environment: Ubuntu 11.04 64 bit, Intel i5, OpenJDK 1.6.0_20
>            Reporter: Ashok Hariharan
>            Assignee: Devin Han
>              Labels: java, odf, patch, test, test-patch
>             Fix For: odfdom-0.8.8, 0.6-incubating
>
>         Attachments: odffiledom-patch.txt, xpathtest-case-patch.txt, 
> XPathTest-duplicate-prefix.odt
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to