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. #9970

@quanpy

Description

@quanpy

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

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

Describe the bug

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidNot reproducable or not relevant to the current state of the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions