-
Bug
-
Resolution: Not an issue
-
Critical
-
2.0.1
-
None
Per MGNLOBS-26 the repository property is only needed as a command parameter. However, the system expects to find it in two places: under the listener and as command parameter.
To reproduce:
- Import the attached activateAddedPages listener.
- Delete the repository property from /modules/observation/config/listenerConfigurations/activateAddedPages/listener/params/repository.
- In the Pages app, add a new site root page.
- Result: error 1.
- Add the property back to command parameters but delete it from /modules/observation/config/listenerConfigurations/activateAddedPages/repository
- In the Pages app, add a new site root page.
- Result: no error is thrown but the page is not activated.
Error 1:
DEBUG a.module.observation.commands.CommandEventListener: Checking event for command info.magnolia.module.activation.commands.ActivationCommand invocation DEBUG a.module.observation.commands.CommandEventListener: Command params are {} DEBUG a.module.observation.commands.CommandEventListener: Path is /test8 DEBUG nolia.module.activation.commands.ActivationCommand: Will activate content from null repository with uuid null and path /test8 ERROR a.module.observation.commands.CommandEventListener: can't execute command java.lang.NullPointerException
Acceptance criteria
- caused by
-
MGNLOBS-26 NPE on running command triggered by event
- Closed