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

.tar.gz files are considering as directories in FTP #10018

Closed
cyberduck opened this issue Jul 18, 2017 · 2 comments
Closed

.tar.gz files are considering as directories in FTP #10018

cyberduck opened this issue Jul 18, 2017 · 2 comments
Labels
bug ftp FTP Protocol Implementation worksforme

Comments

@cyberduck
Copy link
Collaborator

1cf0637 created the issue

Hello, we have a public FTP server at ftp.otrs.org (anonymous login available) that contains all the releases of the open source project OTRS.

This files comes in .tar.gz and other extensions. I notice that CyberDuck is extremely slow to show the contents of the FTP path /pub/otrs.

I open the log window and notice that for each .tar.gz there is a delay and the correspoding log entry as:

CWD /pub/otrs/otrs-latest-1.1.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-1.1.tar.gz: Not a directory
CWD /pub/otrs/otrs-1.1.3.tar.gz
550 Can't change directory to /pub/otrs/otrs-1.1.3.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-1.2.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-1.2.tar.gz: Not a directory
CWD /pub/otrs/otrs-1.2.4.tar.gz
550 Can't change directory to /pub/otrs/otrs-1.2.4.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-2.0.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-2.0.tar.gz: Not a directory
CWD /pub/otrs/otrs-2.0.5.tar.gz
550 Can't change directory to /pub/otrs/otrs-2.0.5.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-2.1.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-2.1.tar.gz: Not a directory
CWD /pub/otrs/otrs-2.1.9.tar.gz
550 Can't change directory to /pub/otrs/otrs-2.1.9.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-2.2.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-2.2.tar.gz: Not a directory
CWD /pub/otrs/otrs-2.2.9.tar.gz
550 Can't change directory to /pub/otrs/otrs-2.2.9.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-2.3.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-2.3.tar.gz: Not a directory
CWD /pub/otrs/otrs-2.3.6.tar.gz
550 Can't change directory to /pub/otrs/otrs-2.3.6.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-2.4.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-2.4.tar.gz: Not a directory
CWD /pub/otrs/otrs-2.4.15.tar.gz
550 Can't change directory to /pub/otrs/otrs-2.4.15.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-3.0.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-3.0.tar.gz: Not a directory
CWD /pub/otrs/otrs-3.0.22.tar.gz
550 Can't change directory to /pub/otrs/otrs-3.0.22.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-3.1.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-3.1.tar.gz: Not a directory
CWD /pub/otrs/otrs-3.1.21.tar.gz
550 Can't change directory to /pub/otrs/otrs-3.1.21.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-3.2.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-3.2.tar.gz: Not a directory
CWD /pub/otrs/otrs-3.2.18.tar.gz
550 Can't change directory to /pub/otrs/otrs-3.2.18.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-3.3.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-3.3.tar.gz: Not a directory
CWD /pub/otrs/otrs-3.3.17.tar.gz
550 Can't change directory to /pub/otrs/otrs-3.3.17.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-4.0.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-4.0.tar.gz: Not a directory
CWD /pub/otrs/otrs-4.0.24.tar.gz
550 Can't change directory to /pub/otrs/otrs-4.0.24.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest-5.0.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest-5.0.tar.gz: Not a directory
CWD /pub/otrs/otrs-5.0.21.tar.gz
550 Can't change directory to /pub/otrs/otrs-5.0.21.tar.gz: Not a directory
CWD /pub/otrs/otrs-latest.tar.gz
550 Can't change directory to /pub/otrs/otrs-latest.tar.gz: Not a directory
CWD /pub/otrs/otrs-5.0.21.tar.gz
550 Can't change directory to /pub/otrs/otrs-5.0.21.tar.gz: Not a directory

I tried wth other FTP clients and they are really fast art displaying the contents of the directory

@cyberduck
Copy link
Collaborator Author

1cf0637 commented

Look it again it sms that the only affected releases are the ones where we have a simlink.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The relevant part in the transcript is

type=OS.unix=slink:otrs-1.1.3.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g816fe; otrs-latest-1.1.tar.gz
type=OS.unix=slink:otrs-1.2.4.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g8174c; otrs-latest-1.2.tar.gz
type=OS.unix=slink:otrs-2.0.5.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g81751; otrs-latest-2.0.tar.gz
type=OS.unix=slink:otrs-2.1.9.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g81752; otrs-latest-2.1.tar.gz
type=OS.unix=slink:otrs-2.2.9.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g81756; otrs-latest-2.2.tar.gz
type=OS.unix=slink:otrs-2.3.6.tar.gz;size=17;modify=20170718071901;UNIX.mode=0777;unique=902g8175a; otrs-latest-2.3.tar.gz
type=OS.unix=slink:otrs-2.4.15.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g8175d; otrs-latest-2.4.tar.gz
type=OS.unix=slink:otrs-3.0.22.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g8175e; otrs-latest-3.0.tar.gz
type=OS.unix=slink:otrs-3.1.21.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g81763; otrs-latest-3.1.tar.gz
type=OS.unix=slink:otrs-3.2.18.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g81767; otrs-latest-3.2.tar.gz
type=OS.unix=slink:otrs-3.3.17.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g81768; otrs-latest-3.3.tar.gz
type=OS.unix=slink:otrs-4.0.24.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g818a3; otrs-latest-4.0.tar.gz
type=OS.unix=slink:otrs-5.0.21.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g80c05; otrs-latest-5.0.tar.gz
type=OS.unix=slink:otrs-5.0.21.tar.gz;size=18;modify=20170718071901;UNIX.mode=0777;unique=902g80c07; otrs-latest.tar.gz

These files have a symbolic link type set and we try to determine if the entry is a file or directory which cannot be guessed from the type or filename returned. Usually this operation is fast but in this case the server seems to take a long time to return a 550 failure accessing the directory. Workaround is to remove these symbolic links or to determine why the server software is not immediately returning a failure.

@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 ftp FTP Protocol Implementation worksforme
Projects
None yet
Development

No branches or pull requests

1 participant