Bug 195085

Summary: When accessing an ftp server with an http proxy set, it tries to use the smb protocoll
Product: [Applications] konqueror Reporter: Micha <mschoell>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: dschridde+kde, ingomar, msnkipa
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Don't save broken proxy URLs when no proxy is set.

Description Micha 2009-06-03 11:23:53 UTC
Version:           4.2.88 (KDE 4.2.88 (KDE 4.3 >= 20090527)) (using 4.2.88 (KDE 4.2.88 (KDE 4.3 >= 20090527)), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.29-02062903-generic

When an http proxy is set,
any ftp access is denied with the error message Access Denied, Additional Information: smb://ftp...

Steps to reproduce:
1) Manually specify an http proxy, any proxy works, does not even have to exist.
2) Type e.g. ftp://idlastro.gsfc.nasa.gov into the location bar of konquerer.

The error page I get is 
------
The requested operation could not be completed
Access Denied
Details of the Request:
URL: ftp://idlastro.gsfc.nasa.gov/
Protocol: ftp
Date and Time: Wednesday 03 June 2009 11:17 am
Additional Information: smb://idlastro.gsfc.nasa.gov/
Description:
Access was denied to the specified resource, ftp://idlastro.gsfc.nasa.gov/.
Possible Causes:
You may have supplied incorrect authentication details or none at all.
Your account may not have permission to access the specified resource.
Possible Solutions:
Retry the request and ensure your authentication details are entered correctly.
Contact your appropriate computer support system, whether the system administrator, or technical support group for further assistance.
-------

Plugins: kjavaappletviewer, flashplugin-alternative, libskypebuttons, nppdf
Comment 1 Micha 2009-06-04 15:18:43 UTC
It works when removing the entry
ftpProxy=ftp://:8080
in the file ${KDEHOME}/share/config/kioslaverc 

Looks like a bug in the proxy setting/reading part or kioslave/ftp/ftp.cpp in the UseProxy logic
Comment 2 Dennis Schridde 2009-06-16 19:17:49 UTC
For me this issue exists since a *long* time. Whole 4.2 series at least, I would say.
Comment 3 Dennis Schridde 2009-06-16 19:19:53 UTC
PS: I would recommend bumping Severity to blocker, since it makes FTP completely unusable.
(Without a proxy HTTP is unusably slow, so disabling the proxy is not an option.)
Comment 4 Dennis Schridde 2009-09-05 12:01:29 UTC
This is still a MAJOR issue...
Comment 5 Dennis Schridde 2009-09-05 12:03:30 UTC
See also bug #177583 and bug #195085.
Comment 6 Dennis Schridde 2009-09-05 12:04:09 UTC
See also bug #177583 and bug #201327.
Comment 7 artjom.simon 2009-12-02 03:22:56 UTC
*** This bug has been confirmed by popular vote. ***
Comment 8 Ingomar Wesp 2010-05-03 10:41:17 UTC
Created attachment 43184 [details]
Don't save broken proxy URLs when no proxy is set.

If the passed proxy definition does not contain a hostname (because the config dialog's text field was left empty), do not save a broken proxy URL, but delete the corresponding config key instead.
Comment 9 Ingomar Wesp 2010-05-03 10:49:57 UTC
Please have a look at the patch I just submitted. It partially fixes the issue as it avoids writing broken proxy URLs if the user leaves the text field for a particular proxy empty.

Unfortunately, this means that users that are affected by this bug need to open up their proxy settings and re-apply their configuration in order for this fix to take effect.
Comment 10 David Faure 2010-05-03 18:58:40 UTC
SVN commit 1122351 by dfaure:

Don't create broken proxy urls like ftp://:8080 from empty lineedits.
Based on investigation by Ingomar Wesp - thanks!
CCBUG: 195085


 M  +1 -1      kmanualproxydlg.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1122351
Comment 11 David Faure 2010-05-03 19:00:35 UTC
SVN commit 1122353 by dfaure:

Don't create broken proxy urls like ftp://:8080 from empty lineedits.
Based on investigation by Ingomar Wesp - thanks!
Fixed for: 4.4.4
BUG: 195085


 M  +1 -1      kmanualproxydlg.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1122353
Comment 12 David Faure 2010-05-03 19:04:57 UTC
*** Bug 177583 has been marked as a duplicate of this bug. ***