[MGNLOBS-1] Fails to deliver REMOVE event Created: 24/Jun/08  Updated: 25/Nov/13  Resolved: 09/Jan/09

Status: Closed
Project: Observation
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Type: Bug Priority: Blocker
Reporter: Sameer Charles Assignee: Teresa Miyar
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 1h
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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

Exception raised If I add a listener for event type NODE_REMOVED and with "restrictPathToNodeType" as the same node type as the node which
has been deleted.
I am trying to setup a listener to deactivate a node if someone removes it from an external system.

  • Note that Deactivation command does work with the UUID.

------------------------------------------------------------------------------------------------------------------------
ERROR info.magnolia.module.observation.commands.CommandEventListener CommandEventListener.java(onEvent:119) 24.06.2008 14:26:18 can't deliver event
javax.jcr.PathNotFoundException: proxyObjects/2008/6/8/ArticleX2
at org.apache.jackrabbit.core.NodeImpl.getNode(NodeImpl.java:2501)
at info.magnolia.cms.core.DefaultContent.<init>(DefaultContent.java:131)
at info.magnolia.cms.core.DefaultHierarchyManager.getContent(DefaultHierarchyManager.java:279)
at info.magnolia.module.observation.commands.CommandWithPathEventListener.getPath(CommandWithPathEventListener.java:63)
at info.magnolia.module.observation.commands.CommandEventListener.onEvent(CommandEventListener.java:97)
at org.apache.jackrabbit.core.observation.EventConsumer.consumeEvents(EventConsumer.java:231)
at org.apache.jackrabbit.core.observation.ObservationDispatcher.run(ObservationDispatcher.java:145)
at java.lang.Thread.run(Thread.java:613)



 Comments   
Comment by Teresa Miyar [ 25/Jun/08 ]

The problem here is that the node is already deleted when you get into the event.
I will return the path unchanged, will the deactivate command work if the node does not exist anymore?

Comment by Sameer Charles [ 30/Jun/08 ]

have you tested with the current deactivate command?
If not we might have to write a special deactivate command together with this module.

Comment by Teresa Miyar [ 09/Jan/09 ]

The event is fired when the node has already been removed, jackrabbit behavior.

Generated at Mon Feb 12 10:23:03 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.