evolution load images sends bad http requests

Bug #326581 reported by Chris Landrieu
4
Affects Status Importance Assigned to Milestone
evolution-data-server
Fix Released
Medium
evolution-data-server (Ubuntu)
Triaged
Low
Ubuntu Desktop Bugs

Bug Description

Evolution and/or libCamel are constructing the HTTP request incorrectly when loading images.

The following HTML e-mail excerpt (from a PS3-related e-mail):
  <img src="http://images.innovyx.net/dp/scea/ps3news/012309/i/ftr/ps3n0608_verytop.jpg" width="121" height="10" border="0" />

...is generating the following HTTP request (captured from Wireshark):
GET http://images.innovyx.net/dp/scea/ps3news/012309/i/ftr/ps3n0608_verytop.jpg HTTP/1.0

User-Agent: CamelHttpStream/1.0 Evolution/2.24.3

Host: images.innovyx.net

Notice that the entire URL (the absoluteURI - http://images.innovyx.net/dp/scea/ps3news/012309/i/ftr/ps3n0608_verytop.jpg) is included the as the Request-URI, rather than just the absolute path (abs_path).

This request is NOT being made to a proxy server, so according to the HTTP/1.0 protocol (http://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#Request-Line), the Request-URI should be an absolute path.

The web server in this request doesn't understand the request and therefore gives an HTTP/1.0 400 Bad Request.

The HTTP request should only send the absolute path when a proxy server is not being used. For some sites, this appears to work, but for others it doesn't.

I'm guessing this is a bug in libCamel, since it should know that a proxy server is not being used and construct the request line properly.

This is on:
Release: Ubuntu 8.10
evolution: 2.24.3-0ubuntu1
evolution-data-server: 2.24.3-0ubuntu1
libcamel1.2-14: 2.24.3-0ubuntu1

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

For future information, libCamel is a part of the evolution-data-server source package. This looks thorough enough that I'm going to confirm and kick upstream to gnome, hold on for the link.

Thanks for taking the time to help make Ubuntu better.

Revision history for this message
Patrick Kilgore (patrick-kilgore) wrote :

The folks at gnome have it, you can keep track of its progress here, or add comments at Gnome by clicking the link under "assigned to"

Changed in evolution-data-server:
importance: Undecided → Low
status: New → Confirmed
status: Confirmed → Triaged
Changed in evolution-data-server:
assignee: nobody → desktop-bugs
Changed in evolution-data-server:
status: Unknown → New
Changed in evolution-data-server:
importance: Unknown → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.