[ 
https://issues.apache.org/jira/browse/JCR-1161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555293#action_12555293
 ] 

Jukka Zitting commented on JCR-1161:
------------------------------------

I believe this issue is about the ExportDocViewTest.readDocument() method, that 
transforms the exported XML into a DOM Document using a Transformer. Some XML 
parser or transformer implementations don't include the xmlns attributes (at 
least the ones for namespaces not otherwise referenced in the document) in the 
resulting DOM tree, causing the ExportDocViewTest.compareNamespaces() method to 
fail.

I guess we could work around this issue by doing the namespace check by 
re-parsing the XML document using a SAX parser with the 
http://xml.org/sax/features/namespace-prefixes feature enabled.

> Export test cases fail with Java 5 on Mac OS X
> ----------------------------------------------
>
>                 Key: JCR-1161
>                 URL: https://issues.apache.org/jira/browse/JCR-1161
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-jcr-tests
>    Affects Versions: 0.9, 1.0, 1.0.1, 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3, 1.3, 
> 1.3.1
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>         Attachments: azydron.vcf, azydron.vcf
>
>
> As reported by Roy during the Jackrabbit 1.3.1 release vote:
> I am getting test failures on OS X 10.4.10 (PPC) with java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
> Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing).
> All failures are because of
> junit.framework.AssertionFailedError: namespace: http://www.jcp.org/
> jcr/mix/1.0 not exported
> More details below.
> ....Roy
> Running org.apache.jackrabbit.test.TestAll
> [Fatal Error] :1:10: Attribute name "is" associated with an element
> type "this" must be followed by the ' = ' character.
> [Fatal Error] :1:10: Attribute name "is" associated with an element
> type "this" must be followed by the ' = ' character.
> [Fatal Error] :-1:-1: Premature end of file.
> [Fatal Error] :-1:-1: Premature end of file.
> Tests run: 1055, Failures: 8, Errors: 0, Skipped: 0, Time elapsed:
> 119.126 sec <<< FAILURE!
> Results :
> Failed tests:
>   testExportDocView_handler_session_skipBinary_noRecurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_handler_session_skipBinary_recurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_handler_session_saveBinary_noRecurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_handler_session_saveBinary_recurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_stream_session_skipBinary_recurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_stream_session_skipBinary_noRecurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_stream_session_saveBinary_noRecurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
>   testExportDocView_stream_session_saveBinary_recurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)
> Tests run: 1248, Failures: 8, Errors: 0, Skipped: 0
> ------------------------------------------------------------------------
> -------
> Test set: org.apache.jackrabbit.test.TestAll
> ------------------------------------------------------------------------
> -------
> Tests run: 1055, Failures: 8, Errors: 0, Skipped: 0, Time elapsed:
> 119.124 sec <<< FAILURE!
> testExportDocView_handler_session_skipBinary_noRecurse
> (org.apache.jackrabbit.test.api.ExportDocViewTest)  Time elapsed:
> 0.07 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: namespace: http://www.jcp.org/
> jcr/mix/1.0 not exported

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to