Skip to content

Conversation

artembilan
Copy link
Member

Fixes: #2820

The current FtpRemoteFileTemplate.exists() implementation obtains a
Session for the NLST_AND_DIRS mode, but doesn't close it.

  • Fix the FtpRemoteFileTemplate.exists() method to delegate to super
    for the proper interaction with a Session

Cherry-pick to 5.1.x, 5.0.x & 4.3.x

Fixes: spring-projects#2820

The current `FtpRemoteFileTemplate.exists()` implementation obtains a
`Session` for the `NLST_AND_DIRS` mode, but doesn't close it.

* Fix the `FtpRemoteFileTemplate.exists()` method to delegate to `super`
for the proper interaction with a `Session`

**Cherry-pick to 5.1.x, 5.0.x & 4.3.x**
@garyrussell
Copy link
Contributor

Cherry-picked to 5.1.x, 5.0.x, 4.3.x after resolving conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FtpRemoteFileTemplate connection leak with ExistsMode.NLST_AND_DIRS
2 participants