There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-4eab5b5e-80ed-4d5e-82fb-0c2826724795 XWIKI-24327 Closed

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

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-07ea4d29-48a6-4132-9f0e-f5e35113326a Michael Hamann on 13/May/26 11:57
 

In fact, it appears that all file input and output streams, not just AutoCloseInputStream, are eventually closed by the JDK when the stream becomes unreachable using FileCleanable. So I fear we're currently almost not noticing any missing file closing due to this as it probably needs very special load patterns with little GC pressure to trigger any limits due to this.