Branch: refs/heads/XWIKI-22931
Home:
https://github.com/xwiki/xwiki-platform
Commit: 205154681fff76acb9061a48fc767174ff13d1c9
https://github.com/xwiki/xwiki-platform/commit/205154681fff76acb9061a48fc76…
Author: Simon Urli <simon.urli(a)xwiki.com>
Date: 2025-02-27 (Thu, 27 Feb 2025)
Changed paths:
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiAttachment.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiAttachmentContent.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
M
xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/doc/XWikiDocumentMockitoTest.java
Log Message:
-----------
XWIKI-22931: The edit action modify the cached document when creating a page from
template
* Fix XWikiDocument#copyAttachment to actually perform a real clone
including the copy of the content
* Introduce a XWikiAttachment#cloneWithActualContent to clone and copy
the content
* Introduce a XWikiAttachmentContent#clone(boolean) that allows to
decide to skip or not copying the content
WIP: right now tests are passing but it shows a regression in logs when
running PageTemplatesIT, probably due to the ownerDocument of
XWikiAttachmnentContent in clone method
To unsubscribe from these emails, change your notification settings at
https://github.com/xwiki/xwiki-platform/settings/notifications