After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589251 - libsoup_proxy_resolver_gnome does not set up HTTP authentication
libsoup_proxy_resolver_gnome does not set up HTTP authentication
Status: RESOLVED DUPLICATE of bug 580051
Product: libsoup
Classification: Core
Component: HTTP Transport
2.26.x
Other All
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-07-21 14:15 UTC by Grahame Bowland
Modified: 2009-07-21 14:29 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Add Proxy-Authorization header user credentials from GConf (2.69 KB, patch)
2009-07-21 14:17 UTC, Grahame Bowland
none Details | Review

Description Grahame Bowland 2009-07-21 14:15:38 UTC
Please describe the problem:
As far as I can see, nothing in libsoup_proxy_resolver_gnome sets up proxy authentication. It simply assembles a http_proxy environment variable, which libproxy then parses. I've added a patch to add back support for proxy authentication, using the username and password stored in GConf by GNOME.

Steps to reproduce:
Attempt to use an authenticated proxy to get the weather via the gnome weather applet. Proxy must require auth.

Actual results:
The attempt to retrieve the weather is rejected as no authentication headers were set.

Expected results:
Data to be retrieved through the proxy.

Does this happen every time?
Yes.

Other information:
Comment 1 Grahame Bowland 2009-07-21 14:17:28 UTC
Created attachment 138909 [details] [review]
Add Proxy-Authorization header user credentials from GConf

A bit hanky, but it does work. Proxy auth detais are only set if we are actually going to make the request through a proxy to try and avoid leaking details out to random HTTP servers. Not quite sure what the correct implementation would be, any feedback would be great.
Comment 2 Dan Winship 2009-07-21 14:29:19 UTC
this was already fixed as of libsoup 2.26.3


*** This bug has been marked as a duplicate of 580051 ***