Bug 188134

Summary: Absolute links prevent forward proxies
Product: [Applications] ktorrent Reporter: Arthur Pemberton <pembo13>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal CC: glen
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Arthur Pemberton 2009-03-26 06:09:48 UTC
Version:            (using KDE 4.2.1)
OS:                Linux
Installed from:    Fedora RPMs

Description of problem:
Can't forward proxy KTorrent site from a sub-folder path because login form
posts to /login

How reproducible:
100%

Steps to Reproduce:
1. Enable Ktorrent Web Interface
2. Setup proxy to http://ktorrenthost:port/ from http://accessible.tld/foobar/
3. Browse to http://accessible.tld/foobar/
4. Attempt to log in

Actual results:
Form posts to /login, login fails.

Expected results:
Form posts to login and login succeeds.

Additional info:
Either using relative URLs through out or allowing the user to choose a path
will work.
Comment 1 Joris Guisson 2009-03-27 08:58:42 UTC
*** Bug 188210 has been marked as a duplicate of this bug. ***
Comment 2 Joris Guisson 2009-03-27 12:54:09 UTC
SVN commit 945370 by guisson:

- Use relative URL's in webinterface 
- Don't send body of login page when redirecting to login page 

BUG: 188134
BUG: 188209



 M  +2 -0      ChangeLog  
 M  +7 -10     plugins/webinterface/httpserver.cpp  
 M  +12 -12    plugins/webinterface/www/coldmilk/coldmilk.html  
 M  +1 -1      plugins/webinterface/www/coldmilk/login.html  
 M  +11 -11    plugins/webinterface/www/coldmilk/page_update.js  
 M  +1 -1      plugins/webinterface/www/common/login.js  
 M  +2 -2      plugins/webinterface/www/common/settings.js  
 M  +5 -5      plugins/webinterface/www/common/torrent_details.js  
 M  +4 -4      plugins/webinterface/www/common/torrent_list.js  
 M  +11 -11    plugins/webinterface/www/default/interface.html  
 M  +3 -3      plugins/webinterface/www/default/interface.js  
 M  +1 -1      plugins/webinterface/www/default/login.html  
 M  +2 -2      plugins/webinterface/www/mobile/interface.html  
 M  +1 -1      plugins/webinterface/www/mobile/login.html  
 M  +5 -5      plugins/webinterface/www/mobile/mobile.js  


WebSVN link: http://websvn.kde.org/?view=rev&revision=945370