[ http://jira.magnolia.info/browse/MGNLOBS-3?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18272#action_18272 ]
Teresa Miyar commented on MGNLOBS-3: ------------------------------------ Hi Joshua, Your are right there is a problem with the remove event, as the event is fired when that node doesn't exist any more there is no way to know which node type it is. It's the way jackrabbit works, there is no 'after removal event' a workaround would be to create a new listener for the delete event that sets the includeSubNodes to false. Regards, Teresa > Deletion Event (event 2) does not respect mgnl:content nodeType, other > actions do > --------------------------------------------------------------------------------- > > Key: MGNLOBS-3 > URL: http://jira.magnolia.info/browse/MGNLOBS-3 > Project: Magnolia Observation Module > Issue Type: Bug > Reporter: Joshua Frankamp > Assignee: Teresa Miyar > > Below is a section of a log file showing a single command listener I am > developing that is getting events. It is called FileEventCommand. I show the > raw event types too. The first event is a 16, "property modified" in /help. > The second event is a 1 "node created" because I copied /help0/services -> > /help0/services0. The third event is a 2 "node deleted" but you can see its > path is not respecting the mgnl:content, it is reporting the deletion of the > contentNodes also. I truncated the log, there were about 20 contentNodes with > separate events. The rules for the listener are path = / and includeSubNodes > = true and nodeType mgnl:content. > - Joshua > INFO CommandEventListener CommandEventListener.java(onEvent:81) 21.08.2008 > 11:27:39 start event [FileEventCommand] > INFO FileEventCommand FileEventCommand.java(execute:140) 21.08.2008 > 11:27:48 writing 16 event for /help > INFO CommandEventListener CommandEventListener.java(onEvent:128) 21.08.2008 > 11:27:48 event executed successfully [FileEventCommand] > INFO CommandEventListener CommandEventListener.java(onEvent:81) 21.08.2008 > 11:28:08 start event [FileEventCommand] > INFO FileEventCommand FileEventCommand.java(execute:140) 21.08.2008 > 11:28:14 writing 1 event for /help0/services0 > INFO CommandEventListener CommandEventListener.java(onEvent:128) 21.08.2008 > 11:28:14 event executed successfully [FileEventCommand] > INFO CommandEventListener CommandEventListener.java(onEvent:81) 21.08.2008 > 11:28:21 start event [FileEventCommand] > INFO FileEventCommand FileEventCommand.java(execute:140) 21.08.2008 > 11:28:26 writing 2 event for > /help0/services0/mainColumnParagraphs/00/text_files/MetaData > INFO CommandEventListener CommandEventListener.java(onEvent:128) 21.08.2008 > 11:28:26 event executed successfully [FileEventCommand] > INFO FileEventCommand FileEventCommand.java(execute:140) 21.08.2008 > 11:28:29 writing 2 event for > /help0/services0/mainColumnParagraphs/0/text_files/MetaData -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/ ----------------------------------------------------------------