jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Gurfinkel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OAK-7025) Node isCheckedOut() when jcr:isCheckedOut = false throwing ContraintViolationException.
Date Tue, 05 Dec 2017 00:32:00 GMT

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

Jonathan Gurfinkel updated OAK-7025:
------------------------------------
    Description: 
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)



> 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
>            Reporter: Jonathan Gurfinkel
>
> 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)

Mime
View raw message