[xwiki/xwiki-platform] f33406: XWIKI-25275: Attachments stored in the S3 blob sto...
Branch: refs/heads/backport/stable-18.4.x/pr-6865 Home: https://github.com/xwiki/xwiki-platform Commit: f33406ce974d99f4987244e65dcb92abcb961d8c https://github.com/xwiki/xwiki-platform/commit/f33406ce974d99f4987244e65dcb9... Author: ciaens <[email protected]> Date: 2026-10-14 (Wed, 14 Oct 2026) Changed paths: M xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-xar/pom.xml M xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-xar/src/main/java/org/xwiki/filter/xar/internal/output/XAROutputFilterStream.java A xwiki-platform-core/xwiki-platform-filter/xwiki-platform-filter-streams/xwiki-platform-filter-stream-xar/src/test/java/org/xwiki/filter/xar/internal/output/XAROutputFilterStreamTest.java Log Message: ----------- XWIKI-25275: Attachments stored in the S3 blob store are truncated when a page is deleted or exported as XAR (#6865) * Fill each 4095-byte chunk of attachment content with InputStream#readNBytes in XAROutputFilterStream instead of stopping at the first read returning fewer bytes, which a network stream such as an S3 object does before its end * Add XAROutputFilterStreamTest: attachment and attachment revision content read from a stream returning short reads, contents of 0, 4095, 8190 and 13140 bytes read with short reads (same output as with a stream filling each read), XAR to XAR conversion of a multi-chunk attachment, read error after several short reads * Raise the coverage threshold of xwiki-platform-filter-stream-xar from 0.72 to 0.84 Co-authored-by: Claude <[email protected]> (cherry picked from commit 6286e0557c1efd44989b293a12d5faa51cd298fc) To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications