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

STAT fails for directories containing spaces in filename #2500

Closed
cyberduck opened this issue Aug 24, 2008 · 13 comments
Closed

STAT fails for directories containing spaces in filename #2500

cyberduck opened this issue Aug 24, 2008 · 13 comments
Assignees
Labels
bug fixed ftp FTP Protocol Implementation
Milestone

Comments

@cyberduck
Copy link
Collaborator

2458bd0 created the issue

I have many directories containing spaces, and since at least 3.0.2 (or 3.0.1, but I'm not sure of it), I'm unable to browse them or to download them.

Using sftp "solves" the problem, but, well, it's not ftp, and it's slower.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Please post the transcript from View → Log Drawer.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

This is related to #2445. It should fall back to LIST but for some reason does not. Please post the transcript to help resolve this issue.

@cyberduck
Copy link
Collaborator Author

Mathieu Arnold commented

Replying to [comment:2 dkocher]:

This is related to #2445. It should fall back to LIST but for some reason does not. Please post the transcript to help resolve this issue.

Yes, it looks like it's related to 2445, the thing is that sometime, it does not fall back. (The transcript I have I can't disclose, they contain pretty sensitive informations.)

Say, I have the following directories

  • /Foo Bar/Baz
  • /Foo/Buz

The transcript will say :

STAT /Foo Bar

then appears the listing of the /Foo directory, listing the Buz directory.
So, then it'll ask :

STAT /Foo Bar/Buz

which will still get the listing of the Foo directory, and thus, it will ask :

STAT /Foo Bar/Buz/Buz

etc...
which never ends. (At least, I didn't have the patience to wait until it gives an error.)

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:3 Mathieu Arnold]:

Thanks for your comment. This explains a lot. We will have to find a way to detect servers not correctly escaping spaces in pathnames before issueing a local ls command.

@cyberduck
Copy link
Collaborator Author

Mathieu Arnold commented

Hi,

I see that #2445 has been fixed. Does that mean that this one is fixed too ?

Regards,

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [comment:5 Mathieu Arnold]:

Hi,

I see that #2445 has been fixed. Does that mean that this one is fixed too ?

Regards,

No, this issue is still open.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Won't make it into the next release.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#2690 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Until this issue is resolved, use the workaround as described in https://trac.cyberduck.io/wiki/help/en/problems#ListingdirectoriesfailsorshowsnocontentFTP.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

#3034 closed as duplicate.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Milestone 3.2 deleted

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Sample transcript:

MKD test 
257 "/test " - Directory successfully created
NOOP
200 NOOP command successful
STAT /
211-Status of /:
drwx--x---   9 hklaw    adm          4096 Aug  9 10:02 .
drwx--x---   9 hklaw    adm          4096 Aug  9 10:02 ..
drwxr-xr-x   2 hklaw    pg70042      4096 Aug  9 10:02 test 
drwxr-xr-x   2 hklaw    pg70042      4096 Jun 13 05:48 webdoc
211 End of status
NOOP
200 NOOP command successful
CWD /test
550 /test: No such file or directory

@cyberduck
Copy link
Collaborator Author

@dkocher commented

In 36067ad.

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

No branches or pull requests

2 participants