Skip to content

GH-2820: Close session in FtpRemFileTempl.exists #2821

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 19, 2019

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