Bug 326799

Summary: https connection may fails when using proxy under some conditions
Product: [Unmaintained] kio Reporter: Andrea Iacovitti <aiacovitti>
Component: httpAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.11.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.3
Sentry Crash Report:

Description Andrea Iacovitti 2013-10-28 20:33:49 UTC
Suppose to have proxy settings configured to use automatic proxy via PAC script.
Because of this, also suppose connection to https://address1 is made through a proxy server, while connection to https://address2 is made directly.
Open konqueror (doesn't matter what html engine is used) then connect to https://address1. Now try to connect to https://address2, the request will fail.
To reproduce create a local proxy.pac file containing the following:
function FindProxyForURL(url, host) {
        if (shExpMatch(host, "*.kde.org")) {
                return "PROXY some.valid.proxy:port";
        }

        return "DIRECT";
}
and configure automatic proxy setting to use proxy.pac file.
Connect to https://bugs.kde.org (this should go through proxy), then try to do a request to another https url not in kde.org domain.
Comment 1 Andrea Iacovitti 2013-10-30 08:20:46 UTC
Git commit ef2163321f3572ef476eb6888de75ae460e0bc76 by Andrea Iacovitti.
Committed on 30/10/2013 at 08:16.
Pushed by aiacovitti into branch 'KDE/4.11'.

Make sure Qt application level proxy is set to QNetworkProxy::NoProxy
before connecting to host when it is not required.
FIXED-IN: 4.11.3
REVIEW: 113492

M  +3    -0    kioslave/http/http.cpp

http://commits.kde.org/kdelibs/ef2163321f3572ef476eb6888de75ae460e0bc76