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 2018/02/15 15:33:00 UTC

[jira] [Updated] (OAK-7273) ValidNamesTest for unpaired surrogates fails for PostgreSQL

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

Julian Reschke updated OAK-7273:
--------------------------------
    Description: 
...as the JDBC driver rejects malformed strings early:

{noformat}
[ERROR] Failures:
[ERROR]   ValidNamesTest.testUnpairedSurrogateInside:316->nameTest:333 OakMerge0004: OakMerge0004: Following exceptions occurred during the bulk update operations: [org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 2:/test_node/foo?bar was already added in revision
r16199dccfe5-0-1, before
r16199dcd090-0-1, org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 6:/oak:index/nodetype/:index/nt%3Aunstructured/test_node/foo?bar was already added in revision
r16199dccfe5-0-1, before
r16199dcd090-0-1] (retries 5, 61 ms)
[ERROR] Errors:
[ERROR]   ValidNamesTest.testEnclosedNonXMLChars:282->unsupportedNameTest:341 ▒ DocumentStore
{noformat}

and

{noformat}
[ERROR] Tests run: 36, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 9.783 s <<< FAILURE! - in org.apache.jackrabbit.oak.jcr.ValidNamesTest
[ERROR] testEnclosedNonXMLChars[DocumentNodeStore[RDB] on jdbc:postgresql:oak](org.apache.jackrabbit.oak.jcr.ValidNamesTest)  Time elapsed: 0.172 s  <<< ERROR!
org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
        at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentsUncached(RDBDocumentStore.java:482)
        at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentCached(RDBDocumentStore.java:453)
        at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.createOrUpdate(RDBDocumentStore.java:393)
        at org.apache.jackrabbit.oak.plugins.document.util.LeaseCheckDocumentStoreWrapper.createOrUpdate(LeaseCheckDocumentStoreWrapper.java:137)
        at org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:345)
        at org.apache.jackrabbit.oak.plugins.document.Commit.prepare(Commit.java:243)
        at org.apache.jackrabbit.oak.plugins.document.Commit.apply(Commit.java:210)
        at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:302)
        at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:272)
        at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.access$400(DocumentNodeStoreBranch.java:58)
{noformat}

  was:
...as the JDBC driver rejects malformed strings early:

{noformat}
[ERROR] Failures:
[ERROR]   ValidNamesTest.testUnpairedSurrogateInside:316->nameTest:333 OakMerge0004: OakMerge0004: Following exceptions occurred during the bulk update operations: [org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 2:/test_node/foo?bar was already added in revision
r16199dccfe5-0-1, before
r16199dcd090-0-1, org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 6:/oak:index/nodetype/:index/nt%3Aunstructured/test_node/foo?bar was already added in revision
r16199dccfe5-0-1, before
r16199dcd090-0-1] (retries 5, 61 ms)
[ERROR] Errors:
[ERROR]   ValidNamesTest.testEnclosedNonXMLChars:282->unsupportedNameTest:341 ▒ DocumentStore
{noformat}


> ValidNamesTest for unpaired surrogates fails for PostgreSQL
> -----------------------------------------------------------
>
>                 Key: OAK-7273
>                 URL: https://issues.apache.org/jira/browse/OAK-7273
>             Project: Jackrabbit Oak
>          Issue Type: Task
>          Components: jcr
>            Reporter: Julian Reschke
>            Assignee: Julian Reschke
>            Priority: Major
>             Fix For: 1.10
>
>
> ...as the JDBC driver rejects malformed strings early:
> {noformat}
> [ERROR] Failures:
> [ERROR]   ValidNamesTest.testUnpairedSurrogateInside:316->nameTest:333 OakMerge0004: OakMerge0004: Following exceptions occurred during the bulk update operations: [org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 2:/test_node/foo?bar was already added in revision
> r16199dccfe5-0-1, before
> r16199dcd090-0-1, org.apache.jackrabbit.oak.plugins.document.ConflictException: The node 6:/oak:index/nodetype/:index/nt%3Aunstructured/test_node/foo?bar was already added in revision
> r16199dccfe5-0-1, before
> r16199dcd090-0-1] (retries 5, 61 ms)
> [ERROR] Errors:
> [ERROR]   ValidNamesTest.testEnclosedNonXMLChars:282->unsupportedNameTest:341 ▒ DocumentStore
> {noformat}
> and
> {noformat}
> [ERROR] Tests run: 36, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 9.783 s <<< FAILURE! - in org.apache.jackrabbit.oak.jcr.ValidNamesTest
> [ERROR] testEnclosedNonXMLChars[DocumentNodeStore[RDB] on jdbc:postgresql:oak](org.apache.jackrabbit.oak.jcr.ValidNamesTest)  Time elapsed: 0.172 s  <<< ERROR!
> org.apache.jackrabbit.oak.plugins.document.DocumentStoreException: org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
>         at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentsUncached(RDBDocumentStore.java:482)
>         at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.readDocumentCached(RDBDocumentStore.java:453)
>         at org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.createOrUpdate(RDBDocumentStore.java:393)
>         at org.apache.jackrabbit.oak.plugins.document.util.LeaseCheckDocumentStoreWrapper.createOrUpdate(LeaseCheckDocumentStoreWrapper.java:137)
>         at org.apache.jackrabbit.oak.plugins.document.Commit.applyToDocumentStore(Commit.java:345)
>         at org.apache.jackrabbit.oak.plugins.document.Commit.prepare(Commit.java:243)
>         at org.apache.jackrabbit.oak.plugins.document.Commit.apply(Commit.java:210)
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:302)
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.persist(DocumentNodeStoreBranch.java:272)
>         at org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreBranch.access$400(DocumentNodeStoreBranch.java:58)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)