hi alex

that might be related to OAK-3541. i committed an initial fix because
the issue completely blocked me... though OAK-3541 is rather located
in the version storage it might now reveal other bugs we didn't spot
up to now.

can you create another issue and link it to OAK-3541?
i planned to write more tests for the other OPV flags to verify if my
patch really does the right thing. if it turns out that a different fix
is needed for OAK-3541, i can try fixing the OPV... however if properly
fixing OAK-3541 would reveal more (and substancial) issues with the
version 
implementation hidden up to now, i think marcel would need to take over as
the original author of the versioning in Oak.

hope that helps
angela


On 26/10/15 11:58, "Alex Parvulescu" <alex.parvule...@gmail.com> wrote:

>... and a sample of a failing test:
>
>testRestoreChild1(org.apache.jackrabbit.test.api.version.RestoreTest)
>Time
>elapsed: 0.019 sec  <<< ERROR!
>javax.jcr.RepositoryException:
>org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>/testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>property jcr:versionHistory can not be removed
>at
>org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$2.performVoid(Ver
>sionManagerImpl.java:204)
>at
>org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.performVoid(Session
>Delegate.java:273)
>at
>org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.restore(VersionMa
>nagerImpl.java:168)
>at
>org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.restore(VersionMa
>nagerImpl.java:149)
>at
>org.apache.jackrabbit.oak.jcr.session.NodeImpl.restore(NodeImpl.java:1162)
>at
>org.apache.jackrabbit.test.api.version.RestoreTest.testRestoreChild1(Resto
>reTest.java:804)
>
>
>On Mon, Oct 26, 2015 at 11:58 AM, Alex Parvulescu
><alex.parvule...@gmail.com
>> wrote:
>
>> Hi,
>>
>> the trunk IT build is failing, could someone please take a look?
>>
>> Tests in error:
>>
>>   testRestoreChild1(org.apache.jackrabbit.test.api.version.RestoreTest):
>> org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>> /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>> property jcr:versionHistory can not be removed
>>
>>
>> 
>>testRestoreChild1Jcr2_2(org.apache.jackrabbit.test.api.version.RestoreTes
>>t):
>> org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>> /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>> property jcr:versionHistory can not be removed
>>
>>
>> 
>>testRestoreChild1Jcr2_3(org.apache.jackrabbit.test.api.version.RestoreTes
>>t):
>> org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>> /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>> property jcr:versionHistory can not be removed
>>
>>
>> 
>>testRestoreChild1Jcr2_4(org.apache.jackrabbit.test.api.version.RestoreTes
>>t):
>> org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>> /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>> property jcr:versionHistory can not be removed
>>
>>
>> 
>>testRestoreChild1Jcr2(org.apache.jackrabbit.test.api.version.RestoreTest)
>>:
>> org.apache.jackrabbit.oak.api.CommitFailedException: OakConstraint0022:
>> /testroot/versionableNodeName1/child1[[test:versionable]]: Mandatory
>> property jcr:versionHistory can not be removed
>>

Reply via email to