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 376425 - Evolution generally ignores proxy settings
Evolution generally ignores proxy settings
Status: RESOLVED FIXED
Product: GtkHtml
Classification: Other
Component: Rendering
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-11-17 19:23 UTC by Matthew Barnes
Modified: 2007-11-22 07:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed eds patch (1.46 KB, patch)
2007-11-20 16:53 UTC, Milan Crha
committed Details | Review

Description Matthew Barnes 2006-11-17 19:23:19 UTC
Forwarding from a downstream bug report:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=215009

(It was filed against Evolution, but I suspect this is a GtkHtml bug.)


Description of problem:


Version-Release number of selected component (if applicable):
evolution-2.8.1.1-3.fc6



How reproducible: I am using evolution with evolution-connector to get mail from
an OWA server. My Internet access is exclusively through a proxy (I have a local
ntlmaps proxy that contacts the actual proxy, which most Linux applications
can't talk to.) All images appear in as red x-es if the messages reside in local
folders. Occasionally, I notice an image that correctly downloads if the message
is residing on the Exchange Server.


Steps to Reproduce:
1. Set up proxies in System>Preferences>Network Proxy. For good measure set up a
global environment variable (/etc/profile.d/proxy.sh). For good measure, install
gconf-editor to verify that the settings are known to Gnome.
2. Make sure that Email Properties (HTML mail) has "Always download images from
the Internet" checked.
3. Write a rule to move a newsletter in HTML to a local directory.
4. Try to read the message from the local directory.
  
Actual results: The status bar indicates attempts to download the message, but
all images are replaced by red x-es.


Expected results: Successful downloading of the images.


Additional info: I had the same problem in FC5, but never reported it. (I
switched to Evolution very late in the cycle -- I had been using Outlook under
Crossover Office before, as my organization had no OWA at the time.)
Comment 1 Gustavo Carneiro 2007-11-02 15:28:27 UTC
I have the same problem.
Comment 2 Milan Crha 2007-11-20 14:34:53 UTC
Evolution uses settings in /system/http_proxy when downloading images with url like http:// or https://. Can you check what is the image url and if the settings (in gconf-editor) is there? Thanks in advance.
Comment 3 Gustavo Carneiro 2007-11-20 14:54:47 UTC
For instance, I have an email with the URL:

http://bp2.blogger.com/_utOcD-lSx_c/R0F7tQg22BI/AAAAAAAAACQ/Hfbevaw2Ep0/s1600-h/olsr-vs-user-traffic.png

Evolution is not using /system/http_proxy to display the email.  When I do View->Load Images, the email view just freezes for a few seconds/minutes and then times out, as if it tried to load the image without using proxy (the router silently drops port 80 packets, instead of sending back a connection refused).

It is definitely NOT true that "Evolution uses settings in /system/http_proxy when downloading images with url like http:// or https://".
Comment 4 Gustavo Carneiro 2007-11-20 16:17:24 UTC
OK, correction.  I went back to my email window that didn't load images, and I noticed it actually did load images.  I don't know how long it took but it must have been a long time.

So probably what happens is that gtkhtml tries to load images directly first, and only if it fails it tries to load via proxy.  However in my case detecting direct http failure can take minutes, and so loading images takes minutes, which is not acceptable behaviour.
Comment 5 Milan Crha 2007-11-20 16:44:54 UTC
Thanks for quick response. Based on the code, it uses settings from there. Your URL doesn't point to real image, but to the page with the image, so it fails to show, you want to change "/s1600-h/" to "/s1600/" to point to direct image (graph).
Anyway, I found a bug in camel when working with proxy, I'll attach here a patch in couple of minutes. Thanks for your help. (Causing probably that delay you see.)
Comment 6 Milan Crha 2007-11-20 16:53:32 UTC
Created attachment 99404 [details] [review]
proposed eds patch

for evolution-data-server;

This fixes two things, first is a proxy issue above, second if a crash I found while testing. If you've a proxy without username and password, then the g_base64_encode fails (it needs more than one character to encode - strange) and returns NULL, which makes unhappy code which uses it.
Comment 7 Philip Van Hoof 2007-11-21 09:27:49 UTC
Patch in #6 committed to camel-lite:
http://tinymail.org/trac/tinymail/changeset/2985
Comment 8 Srinivasa Ragavan 2007-11-22 04:23:52 UTC
Looks fine to me too. Commit to stable/head.
Comment 9 Milan Crha 2007-11-22 07:16:22 UTC
Committed to trunk. Committed revision 8229.
Committed to stable. Committed revision 8230.