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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2017/12/07 13:15:00 UTC

[jira] [Resolved] (OAK-7025) Node isCheckedOut() when jcr:isCheckedOut = false throwing ContraintViolationException.

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

Marcel Reutegger resolved OAK-7025.
-----------------------------------
       Resolution: Incomplete
    Fix Version/s:     (was: 1.8)

> Node isCheckedOut() when jcr:isCheckedOut = false throwing ContraintViolationException.
> ---------------------------------------------------------------------------------------
>
>                 Key: OAK-7025
>                 URL: https://issues.apache.org/jira/browse/OAK-7025
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core, jcr
>    Affects Versions: 1.7.11
>            Reporter: Jonathan Gurfinkel
>            Assignee: Marcel Reutegger
>         Attachments: OAK-7025-test.patch
>
>
> Working on versioning nodes.
> _line 1: VersionManager vm = session.getWorkspace().getVersionManager();        
> line 2: Version firstVersion = vm.checkin(path);
> line 3: vm.checkout(path);
> line 4: System.out.println(componentNode.isCheckedOut());
> line 5: vm.checkin(path);
> line 6: System.out.println(componentNode.getProperty("jcr:isCheckedOut").getString());
> line 7: System.out.println(componentNode.isCheckoutOut());_
> Line 4 prints "true" as expected.  Line 6 prints "false" as expected as getting checkoutOut property via getProperty method, line 7 expect should return "false" as per line 6 but throws constraint violation exception, as per stack trace below.
> javax.jcr.nodetype.ConstraintViolationException: No matching node definition found for testNode
> 	at org.apache.jackrabbit.oak.plugins.nodetype.EffectiveNodeTypeImpl.getNodeDefinition(EffectiveNodeTypeImpl.java:454)
> 	at org.apache.jackrabbit.oak.plugins.nodetype.ReadOnlyNodeTypeManager.getDefinition(ReadOnlyNodeTypeManager.java:396)
> 	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$3.perform(VersionManagerImpl.java:272)
> 	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl$3.perform(VersionManagerImpl.java:254)
> 	at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:208)
> 	at org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl.isCheckedOut(VersionManagerImpl.java:254)
> 	at org.apache.jackrabbit.oak.jcr.session.NodeImpl.isCheckedOut(NodeImpl.java:1123)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)