Skip to content
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

Failure to read attributes of symbolic link #8519

Closed
cyberduck opened this issue Jan 22, 2015 · 5 comments
Closed

Failure to read attributes of symbolic link #8519

cyberduck opened this issue Jan 22, 2015 · 5 comments
Assignees
Labels
bug sftp SFTP Protocol Implementation thirdparty Issue caused by third party

Comments

@cyberduck
Copy link
Collaborator

30b390b created the issue

I am connecting to an SFTP server (actually a Linux machine running BusyBox),
almost everything is fine ;-)

I am trying to navigate through the directories,
I am entering a directory with symlinks,
and there is the problem, cyberduck says:

Failure to read attributes of SYMLINK.[[br]]
No such file. Please contact your web hosting service provider for assistance.

I am prevented to get the directory content listed,
I also cannot change into a subdirectory,
I am stuck.

But when I log into that machine using SSH,
I can successfully do "cd" and "ls" and everything,
no problem at all.


Attachments

@cyberduck
Copy link
Collaborator Author

@dkocher commented

We are handling non existing symbolic targets gracefully and ignoring errors when determine the symbolic link target cannot be found. But this looks like the SFTP server is returning a NO_SUCH_FILE for the symbolic link file itself for the READLINK we send. Please report this issue to the server vendor.

@cyberduck
Copy link
Collaborator Author

30b390b commented

I am on your side WRT "the SFTP server is returning a NO_SUCH_FILE for the symbolic link file itself for the READLINK we send".

But I think you are not handling non existing symbolic targets gracefully and you are not ignoring errors when determine the symbolic link target cannot be found.

I can honestly assure you you don't, as I don't see any directory listing displayed at all,
if I navigate into a directory containing at least one such symlink.

Can you construct such a situation yourself,
or may I create an account for you,
that you can use for this purpose?

Not that I really depend on this issue being solved at all
(as I have other ways of getting to my files on that server),
but I am quite willing to donate a amount around EUR 30 for this getting solved gracefully (as you put it).
Or should I be a little more generous?
Don't be shy!

@cyberduck
Copy link
Collaborator Author

@dkocher commented

We have a test case for this in [source:trunk/test/ch/cyberduck/core/sftp/SFTPListServiceTest.java#L58].

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:4 dkocher]:

We have a test case for this in [source:trunk/test/ch/cyberduck/core/sftp/SFTPListServiceTest.java#L58].

We only expect the server to return an error response when we try to STAT on the symbolic link and handle this gracefully.

@cyberduck
Copy link
Collaborator Author

30b390b commented

"Business" is a symlink within subdir "home".
Please see the 2 attachments!

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug sftp SFTP Protocol Implementation thirdparty Issue caused by third party
Projects
None yet
Development

No branches or pull requests

2 participants