Bug 157857 - Konq fails to login to anonymous FTP site
Summary: Konq fails to login to anonymous FTP site
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: ftp (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 10:12 UTC by Nick Warne
Modified: 2008-08-31 02:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
log from wireshark while attempting to open the site (filtered on port 21) (33.56 KB, text/plain)
2008-08-30 14:28 UTC, George Kiagiadakis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Warne 2008-02-15 10:12:26 UTC
Version:           4.00.62 (KDE 4.0.62 >= 20080213) (using 4.00.62 (KDE 4.0.62 >= 20080213), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-g9b73e76f

SVN update from 14th Feb 2008.

Konq fails to login to this FTP site:

ftp://download.nvidia.com/XFree86/

Nick
Comment 1 Rui G. 2008-06-20 02:57:41 UTC
Confirmed in 3.5.9 and recent svn (r820951). Firefox has no problem logging in. Dolphin has the same problem so the bug should be moved to another product, maybe kio with component ftp.
Comment 2 Jaime Torres 2008-07-23 18:58:48 UTC
Confirmed in svn trunk 831729.

If you wireshark the communication, you see that it actually logged into twice, but after asking the ftp server the command SYST and PWD, it returns it is not logged in.
Comment 3 George Kiagiadakis 2008-08-30 14:27:03 UTC
I am getting this problem too. Konqueror seems unable to log in and from the wireshark log I can see that for some strange reason it sends a TCP FIN command right after sending a SYST command. So, it terminates the connection and then reopens it to send PWD, which fails. I'll attach a log from wireshark.

The odd thing is that konqueror can open any other anonymous ftp site and also firefox and the "ftp" command line utility can open download.nvidia.com just fine, even by using the same user/pass that konqueror uses (anonymous:anonymous@)
Comment 4 George Kiagiadakis 2008-08-30 14:28:09 UTC
Created attachment 27139 [details]
log from wireshark while attempting to open the site (filtered on port 21)
Comment 5 Harri Porten 2008-08-31 00:31:52 UTC
As far as I can tell the problem stems from the server's response to the PASS command. It replies with two(!) different 230 responses. The "User logged in" message is prefixed with a multi-line warning. I think this trips of the state machine.
Comment 6 Harri Porten 2008-08-31 02:13:47 UTC
Turned out it was a single multi-line response that we did not parse properly. Fixed now with r855035.