Bug 56289 - kio_ftp only uses anonymous login when not specifying username in the addressbar in konqueror
Summary: kio_ftp only uses anonymous login when not specifying username in the address...
Status: RESOLVED FIXED
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: ftp (show other bugs)
Version: 3.1.1
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-23 23:06 UTC by Torquil Macdonald Sørensen
Modified: 2003-10-20 06:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torquil Macdonald Sørensen 2003-03-23 23:06:42 UTC
Version:           3.1.1 (using KDE KDE 3.1.1)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc version 3.2.3 20030309 (Debian prerelease) 
OS:          Linux

When typing ftp://hostname in the addressbar of konqueror, kio_ftp first tries to log in anonymously, and since the server has no anonymous login, a dialog box appears asking for a user name and password. If I then type in my username and password and click OK, it STILL tries to log in anonymously.

It works fine when I type ftp://username@hostname , and then type the password in the dialog box.

	Torquil Macdonald
Comment 1 Torquil Macdonald Sørensen 2003-03-23 23:12:23 UTC
Correction to the title: "on command line" should be "in the addressbar in konqueror" 
Comment 2 Thiago Macieira 2003-03-24 01:17:35 UTC
I've tried to do some debugging. It appears that this truly happens, but it also 
appears to be triggered by multiple connections being used (related to bug #28361) 
 
When debugging, the ioslave tries to log in as anonymous and, when it fails, it asks 
for new credentials and then logs in successfully. That leads me to believe that the 
FTP ioslave works fine. However, it seems that Konqueror launches two ioslaves to 
do the listing, so there are two anonymous logins happening. 
Comment 3 David Faure 2003-03-24 13:20:17 UTC
Subject: Re:  kio_ftp only uses anonymous login when not specifying username in the addressbar in konqueror

On Monday 24 March 2003 01:17, you wrote:
> However, it seems that Konqueror launches two ioslaves to 
> do the listing, so there are two anonymous logins happening.

Could be the URL completion...

Comment 4 Dawit Alemayehu 2003-10-20 06:56:30 UTC
Hello,

This was caused by multiple problems/bugs and both have been fixed in cvs. One was with the URL completion code (KURLCompletion) being too aggresive and the other was the password handling code in kio_ftp which I fixed. I think both of these fixes are available in the 3.1.4 release. I know the kio_ftp fix is in there ; so you might want to update to that release and give it a try. Thanks for the report.