GNOME Bugzilla – Bug 533219
anonymous ftp login not working
Last modified: 2009-03-08 19:38:53 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:
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.
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!
committed to svn