[xwiki/xwiki-platform] cd3b21: XWIKI-24680: Moving an attachment deletes the atta...
Branch: refs/heads/XWIKI-24680 Home: https://github.com/xwiki/xwiki-platform Commit: cd3b2160c64953653b6b50a943a010b6eda57eff https://github.com/xwiki/xwiki-platform/commit/cd3b2160c64953653b6b50a943a01... Author: Vincent Massol <[email protected]> Date: 2026-08-11 (Tue, 11 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/main/java/org/xwiki/attachment/internal/refactoring/job/MoveAttachmentJob.java M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/test/java/org/xwiki/attachment/internal/refactoring/job/MoveAttachmentJobTest.java M xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-test/xwiki-platform-attachment-test-docker/src/test/it/org/xwiki/attachment/test/ui/docker/MoveAttachmentIT.java Log Message: ----------- XWIKI-24680: Moving an attachment deletes the attachment without creating the new one * Use a single document instance when the source and the destination of the move are the same document, so that the renamed attachment is added to the instance that is saved instead of to a discarded clone. * Convert MoveAttachmentJobTest to @OldcoreTest so that the job loads, modifies and saves actual XWikiDocument instances through the store, and assert what the job persists rather than which mock it interacts with. * Add a functional test renaming an attachment without changing its location, a case that was only ever covered in combination with a move to another page. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications