This issue has been created
 
 
Publication Workflow Application / cid:jira-generated-image-avatar-ea573cce-6ea6-4304-8c79-5f25ab5d39ea XAWORKFLOW-119 Open

Move/Rename a Published document with an image does not updated correctly the target reference and the image reference

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-06c2cfc2-fe5a-47c2-ac93-9e5189123529 Florian Véron created this issue on 24/Apr/25 16:32
 
Summary: Move/Rename a Published document with an image does not updated correctly the target reference and the image reference
Issue Type: cid:jira-generated-image-avatar-ea573cce-6ea6-4304-8c79-5f25ab5d39ea Bug
Affects Versions: 2.4.2
Assignee: Unassigned
Created: 24/Apr/25 16:32
Priority: cid:jira-generated-image-static-major-41fe7ad4-ed96-4269-a990-70d0e49c6575 Major
Reporter: Florian Véron
Description:

Observed on XWiki version 16.4.3 and 16.10.5
Rename/move a published document does not update the field 'target' for both 'PublicationWorkflow.PublicationWorkflowClass' objects and content images reference are modified to point on the previous document name.

Note that renaming a published document without image or renaming a document with an image but no workflow will work correctly. It seems that both listeners “working together” cause an issue.

To reproduce : 

Workflow config :

Default draft space
Drafts 
Default target space
Published 
Set Drafts to Hidden?
No 
Move strategy
Regardless of the type of document being moved, move its equivalent document(s) 
Allow custom publication comment ?
No 
Skip draft rights update on workflow transition
No  

Steps :

  • Create a Draft document and insert an image inside
  • Publish Document
  • Move/Rename the published document

Results :

  • The property 'target' of 'PublicationWorkflow.PublicationWorkflowClass' object is not updated in both draft and published document.
    • 'Go to draft' button create a new document in Draft space, publishing the draft will created a new document. 
  • The Image Reference is broken (reference updated with previous document name)