Details
-
Bug
-
Resolution: Not an issue
-
Neutral
-
None
-
6.2.37
-
None
-
None
Description
When trying to run the magnolia-dx-core-webapp locally the registration filter is not installed correctly.
Reproduce
- Clone ssh://git@git.magnolia-cms.com/platform/dx-core.git
- Import maven project to the IDE
- Add the webapp magnolia-dx-core-webapp to the server
- 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
Checklists
Acceptance criteria