Bug 53202

Summary: URL redirection problem browsing with lisa
Product: [Frameworks and Libraries] kdelibs Reporter: John Browne <jkbrowne>
Component: generalAssignee: Stephan Kulow <coolo>
Status: RESOLVED FIXED    
Severity: normal CC: thiago, tonecho
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description John Browne 2003-01-20 21:59:50 UTC
Version:            (using KDE KDE 3.0.99)
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3 
OS:          Linux

Lisa URL redirection only works for FTP and HTTP.  SMB and FISH redirection is broken.  For example, browsing the network with lisa, and clicking on the SMB folder should redirect the url lan://localhost/ipaddress/SMB to smb://ipaddress however it does not work.  The redirection never occurs and the user is presented with an empty window instead of a listing of the network shares on ipaddress.

The XFree86 output from the console shows the following:

kio (kiojob) WARNING Listjob: Redirection from lan://localhost/192.168.0.1/SMB to smb://192.168.0.1 REJECTED!

FISH exhibits a similar behavior.  Problem appears to be kdelibs related.
Comment 1 Thiago Macieira 2003-01-21 18:35:36 UTC
I've done bit of code-hunting. This appears to be related to the 
KApplication::authorizeURLAction call added in kdelibs 3.1. That call disallows 
redirection from lan://* to anything other than http://* and ftp://*. 
 
A new rule allowing a redirection from lan://* to anything would solve the problem, I 
think. Or maybe a better solution. 
Comment 2 Thiago Macieira 2003-01-28 00:13:04 UTC
While the problem isn't fixed by default, you can work around it by using this. 
 
Open your $KDEHOME/share/config/kdeglobals. Add these lines at the end: 
[KDE URL Restrictions] 
rule_count=1 
rule_1=redirect,lan,,,,,,true 
 
Save the file then run the following: 
	dcop kded kbuildsycoca recreate 
 
You should be set to go and be able to browse any redirection from lan:/ 
 
Please report if the solution doesn't work. 
Comment 3 Stephan Kulow 2003-02-24 20:33:12 UTC
Waldo commited both to 3.1 and HEAD 
 
revision 1.545.2.10 
date: 2003/02/04 20:09:41;  author: waba;  state: Exp;  lines: +5 -1 
Lan may redirect everywhere 
 
Comment 4 Thiago Macieira 2003-03-15 22:27:14 UTC
*** Bug 55939 has been marked as a duplicate of this bug. ***
Comment 5 Philip Wall 2003-03-18 21:22:43 UTC
Comment 2 provides workaround fix for Bug 54038
Comment 6 Tom Malfrere 2003-03-18 23:07:17 UTC
comment 2 workaround also works for me on bug 54043