Problem with properties of frozen nodes from linear predecessors #19

adou600 opened this Issue Apr 20, 2012 · 0 comments


None yet
2 participants

adou600 commented Apr 20, 2012

The versioning code of the phpcr tutorial is not working with jackalope-jackrabbit as backend.

The third line of this code:

$version = $versionManager->checkin($node->getPath());
$oldversion = $version->getLinearPredecessor();
echo $oldversion->getName() . ': ' . $oldversion->getFrozenNode()->getPropertyValue('foo'); // jcr:rootVersion: fafa

throws the following error:

Uncaught exception 'PHPCR\PathNotFoundException' with message 'Property foo in /jcr:system/jcr:versionStorage/5e/95/2c/5e952c4f-33fc-4f96-9f2b-41ede6026222/jcr:rootVersion/jcr:frozenNode' in /path/to/jackalope-jackrabbit/vendor/jackalope/jackalope/src/Jackalope/Node.php:628

It could be interesting to write a test about that...

@dbu dbu closed this Apr 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment