After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 533219 - anonymous ftp login not working
anonymous ftp login not working
Status: RESOLVED FIXED
Product: gvfs
Classification: Core
Component: ftp backend
0.2.x
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-05-15 00:41 UTC by Norbert Frese
Modified: 2009-03-08 19:38 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
Use default anonymous password when provided password is empty (non-NULL). (477 bytes, patch)
2009-03-08 18:32 UTC, Andreas Henriksson
none Details | Review

Description Norbert Frese 2008-05-15 00:41:02 UTC
Please describe the problem:
g_mount_operation_set_anonymous (TRUE) doesn't work, but setting the username to "anonymous" does.

Steps to reproduce:
1. try to connect to ftp://gd.tuwien.ac.at


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Bram Neijt 2009-02-26 20:01:06 UTC
Although this bug report is pretty slim, I think I know the problem, so I'm hoping this is the same as the problem mentioned above.

Because it was quicker for me to do, I wrote the full story at https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/334540 before now having the time to file it properly.

Short answer: the FTP backend of GVFS does not send an argument along with the PASS command, while the RFC requires a PASS to always come with some kind of password. So if you have a sloppy FTP server, it will work, but with a compliant FTP server an argumentless PASS will fail in a syntax error.
Comment 2 Andreas Henriksson 2009-03-08 18:32:07 UTC
Created attachment 130297 [details] [review]
Use default anonymous password when provided password is empty (non-NULL).

Thanks for the additional information provided for this bug. I verified the problem with wireshark when running a regular anonymous connection with nautilus.
Other people testing this patch to verify it solves your problems would be appreciated!
Comment 3 Benjamin Otte (Company) 2009-03-08 19:38:53 UTC
committed to svn