incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svante Schubert (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ODFTOOLKIT-302) getNamespaceURI() implementation in ODFDOM is not aware of duplicate namespace prefixes
Date Mon, 06 Feb 2012 22:33:00 GMT

    [ https://issues.apache.org/jira/browse/ODFTOOLKIT-302?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13201703#comment-13201703
] 

Svante Schubert commented on ODFTOOLKIT-302:
--------------------------------------------

Typo: I meant "this was working NOT before" and wrote "this was working before"..
Strange that you are not able to edit comments to fix mistakes, as long the original line
is kept..
                
> 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
>              Labels: java, odf, patch, test, test-patch
>             Fix For: 0.8.8
>
>         Attachments: XPathTest-duplicate-prefix.odt, odffiledom-patch.txt, xpathtest-case-patch.txt
>
>   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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message