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 541737 - "Invalid Reply" while trying to mount Libra FTP Server
"Invalid Reply" while trying to mount Libra FTP Server
Status: RESOLVED DUPLICATE of bug 525283
Product: gvfs
Classification: Core
Component: ftp backend
git master
Other All
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2008-07-06 07:17 UTC by Ilya Chernykh
Modified: 2009-01-13 16:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description Ilya Chernykh 2008-07-06 07:17:07 UTC
Please describe the problem:
FTP does not work in Nautilus, at least with some sites. I've created an empty test FTP site for the bug report testing purposes.

ftp.narod.ru
login:ftpset
password:123456

Nautilus cannot connect this site, while any file browser (Mozilla, Epiphany, IE) as well as FTP client (Total Commander, command-line ftp) do connect this site without any problem.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 A. Walton 2008-07-06 21:13:59 UTC
Thanks for reporting. Can you tell us the server software that server is using, and whether it works when connecting using gvfs-mount?
Comment 2 Ilya Chernykh 2008-07-07 06:45:48 UTC
This is a public server. I do not know the software.

You can test gvfs-mount yoiurself. This server accessible from any point on Earth.
Comment 3 Ilya Chernykh 2008-07-07 06:46:56 UTC
By the way. I use Ubuntu 8.04 and there is no gvfs-mount. There is no such package even in the repository.
Comment 4 A. Walton 2008-07-07 16:20:58 UTC
In Ubuntu you must install the gvfs-bin package first. 

Moving to GVFS as the problem seems to be coming from there (I get "invalid reply"). For testing, the server's source is available here: http://libraftp.narod.ru/

Comment 5 Christian Neumair 2008-07-07 17:11:49 UTC
The response of the server is
 " 220 first-ftp.narod.ru (Libra FTP daemon 0.17 20080704)"
while it should be 
 "220 first-ftp.narod.ru (Libra FTP daemon 0.17 20080704)"
.

So we have two issues:
a) libraftp should not send a space at the beginning of the 220 response
b) gvfs can not deal with spaces at the beginning of responses
Comment 6 Andreas Henriksson 2008-08-24 21:25:59 UTC
(In reply to comment #5)
> The response of the server is
>  " 220 first-ftp.narod.ru (Libra FTP daemon 0.17 20080704)"

That's not how it looks to me. If I telnet to port 21 on ftp.narod.ru I get a perfectly looking greeting message which starts with 220.... If I look at the gvfsd debug output I get this:
<-- 220 first-ftp.narod.ru (Libra FTP daemon 0.17<--  20080704)

The problem seems to be that the greeting string contains a end-of-string ('\0') character, making it two replies as far as gvfs is concerned.

I guess we should make sure to read up until the newline instead of "newline or string-end", but is it worth working around all weird ftp server behaviour in gvfs?
I can't reproduce the problem with Libra FTP Daemon version 1.3.6 from http://libraftp.narod.ru/ and since ftp.narod.ru says it's version 0.17 which is quite a bit lower, maybe it's just time for them to upgrade to resolve this?
Comment 7 A. Walton 2009-01-13 16:08:50 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.


*** This bug has been marked as a duplicate of 525283 ***