There are 2 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-83080adc-0e0a-47de-8df9-0d24731ca8d3 XWIKI-23642 In Progress

When a document is deleted and the automatic redirect is enabled, DocumentCreatedEvent is received before DocumentDeletedEvent

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-56b474d7-d985-476f-a34e-432497b104ee Changes by Thomas Mortagne on 29/Oct/25 13:15
 
Assignee: Thomas Mortagne
Status: Open In Progress
 
 

1 comment

 
cid:jira-generated-image-avatar-56b474d7-d985-476f-a34e-432497b104ee Thomas Mortagne on 29/Oct/25 13:17
 
The main reason is that the redirect document is created in a listener which receive the DocumenDeletedEvent causing a new DocumentCreatedEvent to be sent to all listener before the following DocumenDeletedEvent listeners are called.

The cleanest would be to move the redirect document
creating creation in the job, after the delete, instead of a listener.