[
https://issues.apache.org/jira/browse/OAK-5506?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16348865#comment-16348865
]
Julian Reschke commented on OAK-5506:
-------------------------------------
Tests rerun with {{-DStringWriteTest.propertyCount=1000}}.
Old:
{noformat}
Apache Jackrabbit Oak 1.10-SNAPSHOT
# StringWriteTest C min 10% 50% 90% max
N
Oak-Segment-Tar 1 15 15 31 32 79
2171
Oak-Segment-Tar 1 11 15 31 32 78
2088
Oak-Segment-Tar 1 12 15 31 32 69
2153
Oak-Segment-Tar 1 10 15 31 32 79
2024
{noformat}
New:
{noformat}
Apache Jackrabbit Oak 1.10-SNAPSHOT
# StringWriteTest C min 10% 50% 90% max
N
Oak-Segment-Tar 1 9 15 31 32 78
2073
Oak-Segment-Tar 1 15 15 31 32 63
2113
Oak-Segment-Tar 1 13 15 31 32 78
2070
Oak-Segment-Tar 1 13 15 31 35 79
2026
{noformat}
> reject item names with unpaired surrogates early
> ------------------------------------------------
>
> Key: OAK-5506
> URL: https://issues.apache.org/jira/browse/OAK-5506
> Project: Jackrabbit Oak
> Issue Type: Wish
> Components: core, jcr, segment-tar
> Affects Versions: 1.5.18
> Reporter: Julian Reschke
> Priority: Minor
> Fix For: 1.10
>
> Attachments: OAK-5506-01.patch, OAK-5506-02.patch, OAK-5506-4.diff,
> OAK-5506-bench.diff, OAK-5506-name-conversion.diff, OAK-5506-segment.diff,
> OAK-5506-segment2.diff, OAK-5506.diff, ValidNamesTest.java
>
>
> Apparently, the following node name is accepted:
> {{"foo\ud800"}}
> but a subsequent {{getPath()}} call fails:
> {noformat}
> javax.jcr.InvalidItemStateException: This item [/test_node/foo?] does not
> exist anymore
> at
> org.apache.jackrabbit.oak.jcr.delegate.ItemDelegate.checkAlive(ItemDelegate.java:86)
> at
> org.apache.jackrabbit.oak.jcr.session.operation.ItemOperation.checkPreconditions(ItemOperation.java:34)
> at
> org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.prePerform(SessionDelegate.java:615)
> at
> org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:205)
> at
> org.apache.jackrabbit.oak.jcr.session.ItemImpl.perform(ItemImpl.java:112)
> at
> org.apache.jackrabbit.oak.jcr.session.ItemImpl.getPath(ItemImpl.java:140)
> at
> org.apache.jackrabbit.oak.jcr.session.NodeImpl.getPath(NodeImpl.java:106)
> at
> org.apache.jackrabbit.oak.jcr.ValidNamesTest.nameTest(ValidNamesTest.java:271)
> at
> org.apache.jackrabbit.oak.jcr.ValidNamesTest.testUnpairedSurrogate(ValidNamesTest.java:259)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source){noformat}
> (test case follows)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)