Skip to content

use SftpClient.DirEntry[] files = template.list("test/test0 "); return no such file error, but in server there is a folder name ‘test0 ’ which end of its name is a whitespace. #363

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

Closed
quanpy opened this issue Apr 21, 2025 · 2 comments

Comments

@quanpy
Copy link

quanpy commented Apr 21, 2025

In what version(s) of Spring Integration are you seeing this issue?

For example:

(org.springframework.integration:spring-integration-sftp:6.4.3)

Describe the bug

use SftpClient.DirEntry[] files = template.list("test/test0 "); return no such file error, but in server there is a folder name ‘test0 ’ which end of its name is a whitespace.

error message
Failed to execute on session; nested exception is java.io.UncheckedIOException: SFTP error (SSH_FX_NO_SUCH_FILE): No such file

@quanpy
Copy link
Author

quanpy commented Apr 21, 2025

    boolean exists = template.exists("test/test0 ");,  run this function, return ture, but run SftpClient.DirEntry[] files = template.list("test/test0 ");   ,report ERROR : Caused by: org.springframework.messaging.MessagingException: Failed to execute on session; nested exception is java.io.UncheckedIOException: SFTP error (SSH_FX_NO_SUCH_FILE): No such file

@artembilan
Copy link
Member

artembilan commented Apr 21, 2025

Closed in favor of: spring-projects/spring-integration#9970

@artembilan artembilan closed this as not planned Won't fix, can't repro, duplicate, stale Apr 21, 2025
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

No branches or pull requests

2 participants