[MGNLUI-3504] no appropriate error message, when child item is activated but parent is not Created: 23/Jul/15  Updated: 09/Mar/21  Resolved: 09/Mar/21

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

Type: Improvement Priority: Neutral
Reporter: Adi De Masi Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)
Date of First Response:

 Description   

a user can't activate a page or item, when its parent is not activated. It does not show an appropriate error message in magnolia backend. Only error-log says, what happend:

Message received from subscriber: Parent not found (not yet activated): /Home/ParentPage/SubPage on magnoliaPublic8080
at info.magnolia.module.activation.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:359)
at info.magnolia.module.activation.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:283)
at info.magnolia.module.activation.commands.ActivationCommand.activateRecursive(ActivationCommand.java:274)
at info.magnolia.module.activation.commands.ActivationCommand.activateBulkUpdate(ActivationCommand.java:118)
at info.magnolia.module.activation.commands.ActivationCommand.execute(ActivationCommand.java:80)
at info.magnolia.personalization.command.PersonalizationActivationCommand.execute(PersonalizationActivationCommand.java:51)
at info.magnolia.commands.MgnlCommand.executeSynchronized(MgnlCommand.java:81)
at info.magnolia.commands.MgnlCommand.execute(MgnlCommand.java:70)
at info.magnolia.module.scheduler.CommandJob.execute(CommandJob.java:135)
at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: info.magnolia.cms.exchange.ExchangeException: 1 error detected:
Message received from subscriber: Parent not found (not yet activated): /Home/ParentPage/SubPage on magnoliaPublic8080
at info.magnolia.module.exchangetransactional.TransactionalSyndicator.syndicate(TransactionalSyndicator.java:134)
at info.magnolia.module.exchangetransactional.TransactionalSyndicator.activate(TransactionalSyndicator.java:159)
at info.magnolia.module.activation.BaseSyndicatorImpl.activate(BaseSyndicatorImpl.java:324)
... 10 more



 Comments   
Comment by Roman Kovařík [ 09/Mar/21 ]

Closing as the action should be not available by using Publishable availability rule.

https://demo.magnolia-cms.com/.magnolia/admincentral#app:tasks-app:detail;/tasks/2021/2/9/1615271439390:edit

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