Cyberduck Mountain Duck CLI

#8519 closed defect (thirdparty)

Failure to read attributes of symbolic link

Reported by: johayek Owned by: dkocher
Priority: normal Milestone:
Component: sftp Version: 4.6.3
Severity: blocker Keywords:
Cc: Architecture: Intel
Platform: Mac OS X 10.10

Description

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.
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 (2)

Screen_Shot.20150123171913.png (96.7 KB) - added by johayek on Jan 23, 2015 at 4:20:34 PM.
Screen_Shot.20150123172219.png (52.2 KB) - added by johayek on Jan 23, 2015 at 4:23:37 PM.

Download all attachments as: .zip

Change History (8)

comment:1 Changed on Jan 23, 2015 at 10:09:08 AM by dkocher

  • Resolution set to thirdparty
  • Status changed from new to closed

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.

comment:2 Changed on Jan 23, 2015 at 10:09:32 AM by dkocher

  • Summary changed from sftp / stumbling over a symlink: "Failure to read attributes of BUSINESS." to Failure to read attributes of symbolic link

comment:3 Changed on Jan 23, 2015 at 3:35:24 PM by johayek

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!

comment:5 in reply to: ↑ 4 Changed on Jan 23, 2015 at 4:07:39 PM by dkocher

Replying to dkocher:

We have a test case for this in 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.

comment:6 Changed on Jan 23, 2015 at 4:23:09 PM by johayek

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

Note: See TracTickets for help on using tickets.
swiss made software