Details
-
Bug
-
Resolution: Done
-
Blocker
-
3.3.0.Final
-
None
-
None
Description
Tried upgrading from MS 3.2.0.Final to 3.3.0.Final and one of our (sramp) junit tests started failing with an NPE. The test in question is for deleting an artifact from the sramp repo:
When we delete an artifact we do two things:
1) Move the JCR node from /s-ramp/artifacts/UUID to /s-ramp-trash/artifacts/UUID
2) Remove the primary s-ramp mixin and replace it with sramp:deletedArtifact
The resulting exception is:
java.lang.NullPointerException at org.modeshape.jcr.cache.document.WritableSessionCache.persistChanges(WritableSessionCache.java:1125) at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:544) at org.modeshape.jcr.JcrSession.save(JcrSession.java:1022) at org.overlord.sramp.repository.jcr.JCRPersistence.deleteArtifact(JCRPersistence.java:404) at org.overlord.sramp.repository.jcr.modeshape.JCRPersistenceTest.testDeleteArtifact(JCRPersistenceTest.java:534)