Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
Close FileOutputStream delegate in InspectingOutputStream
InspectingOutputStream extends OutputStream but does not override close(). When content exceeds MEMORY_LIMIT (approximately 4 KB), convertToTempFile() replaces the ByteArrayOutputStream delegate with a FileOutputStream. The try-with-resources in InspectedContent.of() calls close(), which inherits the no-op OutputStream.close(), leaving the FileOutputStream open and leaking a file descriptor. Override close() to delegate to the underlying stream. See gh-50639 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
S
Sebastien Tardif committed
eaf4a0a2861c1246316265b11341469b118a4508
Parent: 3cafe9b
Committed by Stéphane Nicoll <stephane.nicoll@broadcom.com>
on 5/31/2026, 2:13:46 PM