[MGNLPN-607] Can not show version in Segments app Created: 05/Nov/21  Updated: 04/Dec/23

Status: Open
Project: Magnolia Personalization
Component/s: Segmentation App
Affects Version/s: 2.0.12
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Chuong Doan Huy Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2021-11-05 at 10.50.14 AM.png    
Issue Links:
Cloners
clones MGNLPN-425 Publish Segment with include subnodes Open
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
Date of First Response:
Epic Link: AuthorX Maintenance
Team: AuthorX

 Description   

Error was thrown when showing version of Segments app.

Step to reproduce :
1. Open Segments app
2. Choose segment and click "Show version"
3. On the "Show version" dialog, choose any available version
4. Click "Show" button
===> Error was thrown

Stack trace :

Caused by: javax.jcr.nodetype.ConstraintViolationException: Unable to perform operation. Node is protected.
at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:276) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:248) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.PropertyImpl.checkSetValue(PropertyImpl.java:278) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.PropertyImpl.setValue(PropertyImpl.java:726) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2058) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.NodeImpl$SetPropertyOperation.perform(NodeImpl.java:2002) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1924) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at org.apache.jackrabbit.core.NodeImpl.setProperty(NodeImpl.java:1894) ~[jackrabbit-core-2.20.3.jar:2.20.3]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.MgnlPropertySettingNodeWrapper.setProperty(MgnlPropertySettingNodeWrapper.java:146) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.audit.MgnlAuditLoggingContentDecoratorNodeWrapper.setProperty(MgnlAuditLoggingContentDecoratorNodeWrapper.java:140) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.wrapper.DelegateNodeWrapper.setProperty(DelegateNodeWrapper.java:399) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.jcr.decoration.ContentDecoratorNodeWrapper.setProperty(ContentDecoratorNodeWrapper.java:265) ~[magnolia-core-6.2.13-SNAPSHOT.jar:?]
at info.magnolia.personalization.ui.TraitVoterItemProvider.lambda$read$0(TraitVoterItemProvider.java:58) ~[magnolia-personalization-core-2.0.12-SNAPSHOT.jar:?]
at com.machinezoo.noexception.CheckedExceptionHandler$CheckedFunction.apply(CheckedExceptionHandler.java:781) ~[noexception-1.4.4.jar:?]



 Comments   
Comment by Ulrich Scheel [ 04/Dec/23 ]

What is the status of this ticket? We have the same problem in custom apps. It seems to happen when a node has child nodes. For those nodes the "node is protected" error appears.

Comment by Roman Kovařík [ 04/Dec/23 ]

Hi uscheel,

 

This ticket is about personalization traits field specifically https://git.magnolia-cms.com/projects/ENTERPRISE/repos/personalization/browse/magnolia-personalization-core/src/main/java/info/magnolia/personalization/ui/TraitVoterItemProvider.java#58

Do you have the same stacktrace?

 

Regards

Roman

Comment by Ulrich Scheel [ 04/Dec/23 ]

Hi Roman,

No, not the same stacktrace. But the same error "node is protected" and also during "show versions".

Regards, Ulli

Comment by Roman Kovařík [ 04/Dec/23 ]

Not sure what's the source of the problem in your case, without seeing the stacktrace and the app descriptor configuration.

You can create a support ticket https://docs.magnolia-cms.com/product-docs/6.2/Support.html#_reporting_via_jira. The tickets created in other projects do not have a guaranteed response time.

 

Hope that helps 

Roman

Generated at Mon Feb 12 06:39:19 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.