-
Bug
-
Resolution: Done
-
Blocker
-
3.2.0.Final
-
None
-
None
When I import an workspace.xml file using
session.importXML("/", s, ImportUUIDBehavior.IMPORT_UUID_COLLISION_REMOVE_EXISTING);
session.save();
The Import works first time. If now the repo is full and I try to re-import the same workspace again (e.g.: after I made wrong changes etc) then an null-pointer error occurs:
Root cause: java.lang.NullPointerException at org.modeshape.jcr.JcrSession$JcrPreSave.process(JcrSession.java:1844) at org.modeshape.jcr.cache.document.WritableSessionCache.runPreSaveBeforeTransaction(WritableSessionCache.java:465) at org.modeshape.jcr.cache.document.WritableSessionCache.save(WritableSessionCache.java:522) at org.modeshape.jcr.JcrSession.save(JcrSession.java:988) at org.brixcms.jcr.base.wrapper.SessionWrapper.save(SessionWrapper.java:201) at org.brixcms.jcr.api.wrapper.SessionWrapper$18.execute(SessionWrapper.java:274) at org.brixcms.jcr.api.wrapper.AbstractWrapper.executeCallback(AbstractWrapper.java:106) at org.brixcms.jcr.api.wrapper.SessionWrapper.save(SessionWrapper.java:272) at org.brixcms.plugin.snapshot.ManageSnapshotsPanel$7.onSubmit(ManageSnapshotsPanel.java:237) .....
The exact same workspace.xml in usage with modeshape 2.8 can be imported as often as required and overwrites the old content;