You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/06/01 07:54:59 UTC

[jira] [Commented] (OAK-3683) BasicDocumentStore.testInterestingStrings failure on MongoDB after OAK-3651 with Java 8

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

Julian Reschke commented on OAK-3683:
-------------------------------------

The more people run this with JDK8, the more this will occur.

My recommendation is to document that we do not support strings with broken surrogate pairs, and to actively reject them in all persistence implementations so that we have consistent behavior everywhere.

> BasicDocumentStore.testInterestingStrings failure on MongoDB after OAK-3651 with Java 8
> ---------------------------------------------------------------------------------------
>
>                 Key: OAK-3683
>                 URL: https://issues.apache.org/jira/browse/OAK-3683
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: mongomk
>    Affects Versions: 1.4
>         Environment: MongoDB 2.6.9, MongoDB 3.0.2
> Java 8
>            Reporter: Robert Munteanu
>
> On Java 8 only the following test fails:
> {noformat}Failed tests:   testInterestingStrings[MongoFixture: MongoDB](org.apache.jackrabbit.oak.plugins.document.BasicDocumentStoreTest): failure to round-trip brokensurrogate through MongoDB expected:<[?]> but was:<[�]>{noformat}
> According to git bisect the commit which started showing this error was [r1715092|http://svn.apache.org/viewvc?view=revision&revision=r1715092]: OAK-3651 - Remove HierrachialCacheInvalidator
> The command I used to run the tests was {{mvn -am -pl oak-core clean package -Dtest=BasicDocumentStoreTest -DfailIfNoTests=false}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)