Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3565

Editing and saving an asset throws exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 5.4.2
    • 5.4.2
    • None
    • None
    • Kromeriz 9
    • 1

    Description

      To reproduce just edit an existing asset, e.g. by setting a new property, then save it. On the UI all looks good and actually the property set is there in JCR, only in logs this stack trace is shown. See also related issue. Apparently there some code tried to read JCR Property jcr:uuid whereas here it tries to write it.

      2015-09-09 10:51:22,184 ERROR a.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter: Could not set JCR Property jcr:uuid
      javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.
      	at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:276)
      	at org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:248)
      	at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:278)
      	at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:726)
      	at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2058)
      	at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2002)
      	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
      	at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1924)
      	at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1894)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:392)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:254)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:392)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:254)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:392)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:254)
      	at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setProperty(MgnlPropertySettingNodeWrapper.java:146)
      	at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:392)
      	at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:254)
      	at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.setProperty(MgnlAuditLoggingContentDecoratorNodeWrapper.java:140)
      	at info.magnolia.jcr.util.PropertyUtil.setProperty(PropertyUtil.java:114)
      	at info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter.updateProperty(AbstractJcrNodeAdapter.java:268)
      	at info.magnolia.ui.vaadin.integration.jcr.AbstractJcrAdapter.updateProperties(AbstractJcrAdapter.java:126)
      	at info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter.updateProperties(AbstractJcrNodeAdapter.java:221)
      	at info.magnolia.ui.vaadin.integration.jcr.AbstractJcrNodeAdapter.applyChanges(AbstractJcrNodeAdapter.java:191)
      	at info.magnolia.ui.form.action.SaveFormAction.execute(SaveFormAction.java:90)
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                jsimak Jaroslav Simak
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD