You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2010/05/25 11:46:25 UTC

[jira] Created: (JCR-2636) Litmus prophighunicode test failure on JRE 1.5

Litmus prophighunicode test failure on JRE 1.5
----------------------------------------------

                 Key: JCR-2636
                 URL: https://issues.apache.org/jira/browse/JCR-2636
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: jackrabbit-webdav
    Affects Versions: 2.1.0
            Reporter: Jukka Zitting
            Assignee: Jukka Zitting
            Priority: Minor


The WebDAV Litmus test suite contains a test case for writing and reading the Unicode character &#x10000; which can't be represented as a single 16-bit char in Java. Instead the character is stored as a surrogate pair of two 16-bit chars. Unfortunately the Xalan XML serializer used by Sun JRE 1.5 incorrectly encodes these as two separate characters in UTF-8, which leads to the following Litmus test failure:

-> running `props':
[...]
17. prophighunicode....... pass
18. propget............... FAIL (PROPFIND on `/default/litmus/prop2': XML parse error at line 1: not well-formed (invalid token))


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


[jira] Resolved: (JCR-2636) Litmus prophighunicode test failure on JRE 1.5

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-2636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved JCR-2636.
--------------------------------

    Fix Version/s: 2.2.0
       Resolution: Fixed

Fixed in revision 947986 by using an explicit OutputStreamWriter instance for the UTF-8 encoding.

> Litmus prophighunicode test failure on JRE 1.5
> ----------------------------------------------
>
>                 Key: JCR-2636
>                 URL: https://issues.apache.org/jira/browse/JCR-2636
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-webdav
>    Affects Versions: 2.1.0
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> The WebDAV Litmus test suite contains a test case for writing and reading the Unicode character &#x10000; which can't be represented as a single 16-bit char in Java. Instead the character is stored as a surrogate pair of two 16-bit chars. Unfortunately the Xalan XML serializer used by Sun JRE 1.5 incorrectly encodes these as two separate characters in UTF-8, which leads to the following Litmus test failure:
> -> running `props':
> [...]
> 17. prophighunicode....... pass
> 18. propget............... FAIL (PROPFIND on `/default/litmus/prop2': XML parse error at line 1: not well-formed (invalid token))

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