Cyberduck Mountain Duck CLI

#10018 closed defect (worksforme)

.tar.gz files are considering as directories in FTP

Reported by: carlosrodriguez Owned by:
Priority: normal Milestone:
Component: ftp Version: 6.1
Severity: normal Keywords: FTP .tar.gz
Cc: Architecture: Intel
Platform: macOS 10.12

Description (last modified by dkocher)

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

Change History (3)

comment:1 Changed on Jul 18, 2017 at 2:58:16 PM by carlosrodriguez

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

comment:2 Changed on Jul 21, 2017 at 7:57:58 AM by dkocher

  • Description modified (diff)

comment:3 Changed on Jul 21, 2017 at 8:05:20 AM by dkocher

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

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.

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