You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2011/05/09 16:47:03 UTC
[jira] [Resolved] (JCR-2967)
SessionItemStateManager.getIdOfRootTransientNodeState() may cause NPE
[ https://issues.apache.org/jira/browse/JCR-2967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Guggisberg resolved JCR-2967.
------------------------------------
Resolution: Fixed
Assignee: Stefan Guggisberg
fixed in svn r1101046
> SessionItemStateManager.getIdOfRootTransientNodeState() may cause NPE
> ---------------------------------------------------------------------
>
> Key: JCR-2967
> URL: https://issues.apache.org/jira/browse/JCR-2967
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: jackrabbit-core
> Affects Versions: 2.0.0, 2.0.3, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0, 2.2.1, 2.2.2, 2.2.4, 2.2.5
> Reporter: Stefan Guggisberg
> Assignee: Stefan Guggisberg
> Fix For: 2.3.0
>
>
> regression of JCR-2425
> in certain scenarios, calling SessionItemStateManager.getIdOfRootTransientNodeState() may cause a NPE.
> Test case:
> Repository repository = new TransientRepository();
> Session session = repository.login(
> new SimpleCredentials("admin", "admin".toCharArray()));
> Session session2 = repository.login(
> new SimpleCredentials("admin", "admin".toCharArray()));
> try {
> while (session.getRootNode().hasNode("test")) {
> session.getRootNode().getNode("test").remove();
> }
> Node test = session.getRootNode().addNode("test");
> session.save();
> Node x = test.addNode("x");
> session.save();
> Node x2 = session2.getRootNode().getNode("test").getNode("x");
> x2.remove();
> x.addNode("b");
> session2.save();
> session.save(); // throws NPE
> } finally {
> session.logout();
> session2.logout();
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira