There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-7fa74127-ec94-4ce1-814c-cf8d2ca9d47c XWIKI-23365 In Progress

Deleting a cached document which contains xobjects can produce abusive false positive cached document modification warnings

 
View issue   ยท   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-08dd1de1-53c6-468a-8340-636f260a49a1 Thomas Mortagne on 24/Jul/25 14:19
 
This one looks more like a problem the document delete API in general and not so much with how DW does it (which is pretty standard). i.e. it looks like a false positive warning to fix.

Apparently, the problem comes from the fact that the store delete API reload every single property before deleting it. Seems to me the only reason it does that is to make sure it does not try to delete a property that does not actually in the database
, but . But reloading the entire property sounds like an expensive way to check if it exists... especially since delete won't fail if the property does not exist, and it seems the only use case for which we do this check.
 
cid:jira-generated-image-avatar-08dd1de1-53c6-468a-8340-636f260a49a1 Thomas Mortagne on 24/Jul/25 14:20
 
This one looks more like a problem the document delete API in general and not so much with how DW does it (which is pretty standard). i.e. it looks like a false positive warning to fix.

Apparently, the problem comes from the fact that the store delete API reload every single property before deleting it. Seems to me the only reason it does that is to make sure it does not try to delete a property that does not actually in the database. But reloading the entire property sounds like an expensive way to check if it exists... especially since delete won't fail if the property does not exist, and it seems
to be the only use case for which we do this check.