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

Marcel Reutegger updated OAK-6410:
----------------------------------
    Affects Version/s:     (was: 1.4)
                           (was: 1.2)
                           (was: 1.0)
               Labels:   (was: candidate_oak_1_0 candidate_oak_1_2 
candidate_oak_1_4)

Versions 1.4 and older are not affected. With those versions the implementation 
throws a VersionException because the node is checked in. In my view this is 
legitimate as well. The JavaDoc says: "throws VersionException - if this node 
is read-only due to a checked-in node and this implementation performs this 
validation immediately."

> NPE when removing inexistent property from checked in node
> ----------------------------------------------------------
>
>                 Key: OAK-6410
>                 URL: https://issues.apache.org/jira/browse/OAK-6410
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.6.0
>            Reporter: Ioan-Cristian Linte
>            Assignee: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.8, 1.7.3, 1.6.3
>
>
> While running AEM 6.3 which uses oak 1.6.1 the following exception was seen 
> in the logs:
> Stacktrace:
> java.lang.NullPointerException: null
> at 
> org.apache.jackrabbit.oak.jcr.session.NodeImpl$37.checkPreconditions(NodeImpl.java:1449)
> 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.NodeImpl.internalRemoveProperty(NodeImpl.java:1444)
> at 
> org.apache.jackrabbit.oak.jcr.session.NodeImpl.setProperty(NodeImpl.java:354)
> ....... AEM Code
> I have reproduced the NPE with the following code:
> {code:java}
> Node parent = session.getRootNode().addNode("parent", "nt:unstructured");
> Node child = parent.addNode("child", "nt:unstructured");
> child.addMixin("mix:versionable");
> session.save();
> session.getWorkspace().getVersionManager().checkin(child.getPath());
> Node node = (Node) session.getItem("/parent/child");
> node.setProperty("inexistent", (Value) null);
> {code}



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

Reply via email to