Description
This:
// restore mixins Property mixinProperty = tmpNode.hasProperty(JcrConstants.JCR_MIXINTYPES + PROTECTED_PROPERTIES_SUFFIX) ? tmpNode.getProperty(JcrConstants.JCR_MIXINTYPES + PROTECTED_PROPERTIES_SUFFIX) : null; if (mixinProperty != null) { for (Value value : mixinProperty.getValues()) { tmpNode.addMixin(value.getString()); } }
looks fishy to me. Shouldn't it be:
// restore mixins Property mixinProperty = tmpNode.hasProperty(JcrConstants.JCR_MIXINTYPES + PROTECTED_PROPERTIES_SUFFIX) ? tmpNode.getProperty(JcrConstants.JCR_MIXINTYPES + PROTECTED_PROPERTIES_SUFFIX) : null; if (mixinProperty != null) { for (Value value : mixinProperty.getValues()) { destNode.addMixin(value.getString()); } }
?
Attachments
Attachments
Issue Links
- relates to
-
JCRVLT-687 restoring mandatory child nodes from stash fails on Jackrabbit classic
- Open
- links to