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 577532 - libsoup fails to work under proxy server
libsoup fails to work under proxy server
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: HTTP Transport
2.26.x
Other All
: Normal major
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
: 579434 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-03-31 20:41 UTC by syed
Modified: 2009-08-12 12:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description syed 2009-03-31 20:41:45 UTC
Please describe the problem:
libsoup does not work under proxy server . it tries to resolve the address by itself instead of letting the proxy resolve the address . 

Steps to reproduce:
1.run the test program get with proxy option -p 
2.it fails instantly citing the error unable to resolve hostname



Actual results:
syed@localhost:~/libsoup$./get -p http://user:pass@proxy:port/  http://www.google.com/
/index.html: 2 Cannot resolve hostname

Expected results:


Does this happen every time?
yes


Other information:
oh and i am using xfce not gnome would this make any difference ?
Comment 2 Florian Steinel 2009-05-03 19:47:59 UTC
see also RFC1919 section 3.2.3 :
( http://tools.ietf.org/html/rfc1919#page-14 )
      3.2.3 DNS requirements

         In most classical-proxy configurations, client systems pass the
         desired server name (or address) to the proxy system WITHOUT
         INTERPRETING IT. Because of this, the client system DOES NOT
         REQUIRE to be able to resolve the name of the server system in
         order to access it through a classical proxy. It only needs to
         be able to resolve the name of the proxy (if referencing the
         proxy system by name).

... (see RFC)
Comment 3 Florian Steinel 2009-05-03 21:02:59 UTC
For SSL see http://tools.ietf.org/html/rfc2817#page-5
Comment 4 David Kelley 2009-05-12 00:15:15 UTC
I encountered this problem using webkit/libsoup on an embedded device (no gnome) behind a proxy. From what I can tell from the git logs nothing has been added yet (with 2.26.2 due < May 18th I think?). I am interested in seeing a resolution to this bug. Does anyone know if it will be included with the 2.26.2 release or perhaps in a future release?

Thanks,
David
Comment 5 Christophe Gillette 2009-05-12 23:15:20 UTC
I second David. I encountered the same issue in the same circumstances. Definitely very interested in a quick resolution and a potential fix date.
Thank you,
Christophe
Comment 6 remotefish 2009-05-13 11:17:54 UTC
(In reply to comment #5)
> I second David. I encountered the same issue in the same circumstances.
> Definitely very interested in a quick resolution and a potential fix date.
> Thank you,
> Christophe
> 

As a dirty `fix', we could provide a valid /etc/resolve.conf on the device, thus resolve won't fail and connection through proxy can work as expected. This works at least for me.
Comment 7 David Kelley 2009-05-13 19:03:20 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I second David. I encountered the same issue in the same circumstances.
> > Definitely very interested in a quick resolution and a potential fix date.
> > Thank you,
> > Christophe
> > 
> 
> As a dirty `fix', we could provide a valid /etc/resolve.conf on the device,
> thus resolve won't fail and connection through proxy can work as expected. This
> works at least for me.
> 

I think this works only if you have a valid DNS server inside your network, which at least I do not.
Comment 8 Christophe Gillette 2009-06-01 21:53:48 UTC
To corroborate the previous comment, the dirty fix does not work for some network configurations.
Would it be possible to get a feel on when an expected fix date or release would be? (as we need to take action soon)
Thank you
Comment 9 Dan Winship 2009-06-07 03:10:34 UTC
fixed in master. will eventually go into the gnome-2-26 branch for GNOME 2.26.3, to be released July 1.
Comment 10 Christophe Gillette 2009-06-09 03:00:36 UTC
Great, thanks a lot Dan.
Just to let you know that your fix is verified in our environment.
Comment 11 Gabor Kelemen 2009-08-12 12:36:42 UTC
*** Bug 579434 has been marked as a duplicate of this bug. ***