You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Chandan Khandelwal (Jira)" <ji...@apache.org> on 2026/05/29 10:38:00 UTC

[jira] [Updated] (OFBIZ-13427) Potential file descriptor resource leak in FtpServices.java putFile/getFile due to unclosed file streams

     [ https://issues.apache.org/jira/browse/OFBIZ-13427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chandan Khandelwal updated OFBIZ-13427:
---------------------------------------
    Description: 
The FtpServices.putFile and FtpServices.getFile methods instantiate local file streams (FileInputStream and FileOutputStream respectively) to buffer data during FTP transfers, but never close them in any execution path.

This results in continuous file descriptor leaks that can exhaust the operating system's file handler limit leading to *java.io.IOException: Too many open files* and application instability under high-concurrency or batch executions.

> Potential file descriptor resource leak in FtpServices.java putFile/getFile due to unclosed file streams
> --------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13427
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13427
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/common
>    Affects Versions: Upcoming Branch
>            Reporter: Chandan Khandelwal
>            Priority: Major
>             Fix For: Upcoming Branch
>
>
> The FtpServices.putFile and FtpServices.getFile methods instantiate local file streams (FileInputStream and FileOutputStream respectively) to buffer data during FTP transfers, but never close them in any execution path.
> This results in continuous file descriptor leaks that can exhaust the operating system's file handler limit leading to *java.io.IOException: Too many open files* and application instability under high-concurrency or batch executions.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)