This issue has been created
There are 8 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-57606a88-3f4a-4740-bc43-f959a2b4e5d2 XWIKI-24327 Closed

Several code using XWikiAttachmentContent#setContent(InputStream) are not closing the stream

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-41e72556-c0f0-42e3-a826-811d4ab89fcc Thomas Mortagne created this issue on 07/May/26 16:20
 
Summary: Several code using XWikiAttachmentContent#setContent(InputStream) are not closing the stream
Issue Type: cid:jira-generated-image-avatar-57606a88-3f4a-4740-bc43-f959a2b4e5d2 Bug
Affects Versions: 17.10.8
Assignee: Unassigned
Components: Old Core, Storage - File System
Created: 07/May/26 16:20
Priority: cid:jira-generated-image-static-major-f9425fc6-fa8b-4627-b0da-bd6559cccfa1 Major
Reporter: Thomas Mortagne
Description:

We probably did not notice it in practice because most of them seems to actually be ByteArrayInputStream (for which close does not do anything) or a AutoCloseInputStream (which will eventually be closed).

 
 

8 updates

 
cid:jira-generated-image-avatar-41e72556-c0f0-42e3-a826-811d4ab89fcc Changes by Thomas Mortagne on 07/May/26 16:20
 
Fix Version: 18.4.0-rc-1
Fix Version: 17.10.9
Documentation in Release Notes: N/A
Documentation: N/A
Description: We probably did not notice it in practice because most of them seems to actually be ByteArrayInputStream (for which close does not do anything) or a AutoCloseInputStream (which will eventually be closed , but it might take a bit too long when doing that a lot ).
Assignee: Thomas Mortagne
Resolution: Fixed
Status: Open Closed