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/06/01 09:04:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=18085156#comment-18085156 ] 

Chandan Khandelwal commented on OFBIZ-13427:
--------------------------------------------

Here is the PR - https://github.com/apache/ofbiz-framework/pull/1300

> 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
>            Assignee: Nicolas Malin
>            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)