[MGNLEE-812] Could not install or update enterprise module. Task 'Registration Filter' failed Created: 11/Aug/23  Updated: 06/Sep/23  Resolved: 11/Aug/23

Status: Closed
Project: Magnolia DX Core
Component/s: None
Affects Version/s: 6.2.37
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Richard Gange Assignee: Unassigned
Resolution: Not an issue Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: XML File config.server.filters.registration.xml     JPEG File error.jpg    
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

 Description   

When trying to run the magnolia-dx-core-webapp locally the registration filter is not installed correctly.

Reproduce

  1. Clone ssh://git@git.magnolia-cms.com/platform/dx-core.git
  2. Import maven project to the IDE
  3. Add the webapp magnolia-dx-core-webapp to the server
  4. Startup and perform the install

Actual
The enterprise (DX Core module) cannot install normally

2023-08-11 11:53:48,486 ERROR info.magnolia.module.InstallContextImpl           : [532/1066 tasks - DX Core Edition (version 6.2.37)]> Could not install or update enterprise module. Task 'Registration Filter' failed. (PathNotFoundException: /server/filters/registration)
info.magnolia.module.delta.TaskExecutionException: Could not execute task: Path not found: /server/filters/registration
	at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:59) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:493) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:475) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:273) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:267) [magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:126) [magnolia-core-6.2.37.jar:?]
	at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: javax.jcr.PathNotFoundException: /server/filters/registration
	at org.apache.jackrabbit.core.ItemManager.getNode(ItemManager.java:576) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:129) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.session.SessionItemOperation$6.perform(SessionItemOperation.java:125) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.session.SessionItemOperation.perform(SessionItemOperation.java:187) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:363) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at org.apache.jackrabbit.core.SessionImpl.getNode(SessionImpl.java:1152) ~[jackrabbit-core-2.20.10.jar:2.20.10]
	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.wrapper.DelegateSessionWrapper.getNode(DelegateSessionWrapper.java:177) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.jcr.decoration.ContentDecoratorSessionWrapper.getNode(ContentDecoratorSessionWrapper.java:120) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.delta.OrderNodeAfterTask.doExecute(OrderNodeAfterTask.java:68) ~[magnolia-core-6.2.37.jar:?]
	at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:57) ~[magnolia-core-6.2.37.jar:?]
	... 9 more
2023-08-11 11:53:48,739 INFO  fo.magnolia.objectfactory.ObservedComponentFactory: Re-loaded info.magnolia.cms.beans.config.ServerConfiguration from node /server

Expected
Task 'Registration Filter' should be able to execute without error.

Workaround
After the install import config.server.filters.registration.xml, move it into place (after the csrfTokenSecurity) and enter the license.

Notes
Introduced by MGNLEE-549



 Comments   
Comment by Richard Gange [ 11/Aug/23 ]

False alarm. I did a git reset --hard and the issue was cleared. Not sure how this could have happened.

Generated at Mon Feb 12 05:33:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.