This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-b49e59c6-c84d-4231-9d3f-a2e6bb89103c XWIKI-23079 Open

XWikiDocument#clone can switch the initial document dirty flag to true

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-d7b9f79f-fb52-4b79-b160-400f8b36ffa2 Thomas Mortagne created this issue on 07/Apr/25 19:03
 
Summary: XWikiDocument#clone can switch the initial document dirty flag to true
Issue Type: cid:jira-generated-image-avatar-b49e59c6-c84d-4231-9d3f-a2e6bb89103c Bug
Affects Versions: 16.10.5
Assignee: Unassigned
Components: Old Core
Created: 07/Apr/25 19:03
Priority: cid:jira-generated-image-static-major-61e56909-c7a6-4162-913a-555941bd52ac Major
Reporter: Thomas Mortagne
Description:

If the document contains an xclass and is clean, cloning it will flag it as dirty. This can have a huge impact when relying on the dirty flag for any reason, one example is XWIKI-23075.

 
 

2 updates

 
cid:jira-generated-image-avatar-d7b9f79f-fb52-4b79-b160-400f8b36ffa2 Changes by Thomas Mortagne on 07/Apr/25 19:03
 
Assignee: Thomas Mortagne
Priority: Major Critical