[MGNLUI-3565] Editing and saving an asset throws exception Created: 09/Sep/15  Updated: 15/Apr/16  Resolved: 09/Sep/15

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 5.4.2
Fix Version/s: 5.4.2

Type: Bug Priority: Blocker
Reporter: Federico Grilli Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MGNLUI-3536 Unable to save dialog after uploading... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Sprint: Kromeriz 9
Story Points: 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)

Generated at Mon Feb 12 09:07:53 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.