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 312370 - When loading images from an html message the percentage on the status bar is wrong
When loading images from an html message the percentage on the status bar is ...
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 333718 481561 486367 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-02 14:47 UTC by Lucas Vieites
Modified: 2013-09-13 00:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Screenshot showing the supposed bug in the percentage. (182.74 KB, image/jpeg)
2005-09-14 07:25 UTC, Lucas Vieites
  Details
Screenshot of the issue in version 2.6.1 on Ubuntu Dapper (155.23 KB, image/png)
2006-05-08 10:35 UTC, Lucas Vieites
  Details
Proposed patch to fix this problem (1.78 KB, patch)
2007-06-18 13:51 UTC, B S Srinidhi
committed Details | Review

Description Lucas Vieites 2005-08-02 14:47:33 UTC
Please describe the problem:
When receiving html mail with embedded images I load them with the menu option:
"View/Show message/Load images" (more or less, I use the spanish version, which
reads: "Ver/Mostrar mensaje/Cargar imágenes").
If the image(s) take too long to download, the percentage counter in the satus
bar goes nuts and show figures over "100% completed". 

Steps to reproduce:
1. View a html mail message with embedded images
2. Go to "View/Show message/Load images" menu option
3. Look at the status bar


Actual results:
The message in the status bar may say something like: "Fetching
http://someserver/somesite/someimage.gif" (32407% completed)

Expected results:
I expect the counter to go up to 100%, not more

Does this happen every time?
No, only when it takes long to download the images

Other information:
I can provide a screenshot if necessary
Comment 1 C Shilpa 2005-09-14 06:55:40 UTC
Do you find this even with upgraded versions of evolution?? I am not able to
replicate the reported issue using evolution-2.2.3 and evolution-2.4.0.
Comment 2 Lucas Vieites 2005-09-14 07:25:20 UTC
Created attachment 52208 [details]
Screenshot showing the supposed bug in the percentage.

This screenshot was taken from a Ubuntu (Breezy) Linux install with Evolution
2.4.0 loading an imagen in an html message. In the red square you can see that
the percentage loaded is incorrect because it's over 100%.
Comment 3 C Shilpa 2005-09-14 07:42:11 UTC
chaging the state to new.
Comment 4 André Klapper 2006-03-07 16:33:45 UTC
still in 2.5.x according to duplicate bug 333718
Comment 5 André Klapper 2006-03-07 16:34:06 UTC
*** Bug 333718 has been marked as a duplicate of this bug. ***
Comment 6 Lucas Vieites 2006-05-08 10:35:04 UTC
Created attachment 65014 [details]
Screenshot of the issue in version 2.6.1 on Ubuntu Dapper
Comment 7 Lucas Vieites 2006-05-08 10:42:59 UTC
How I recreated this bug:
1- In Preferences/Mail Options/HTML mail Tab: Mark "Never load images from internet"
2- Create a new message in html format.
3- Insert an html file (Insert/HTML file) which contains somthing like:
[snip]
<img src="http://www.asixinformatica.com/archivos/inkscape_properties.png">
[/snip]
This image is quite large, +- 350 KB
4- Send the message to myself
5- When I received the message I don't see the image (see step 1), so I select "View/Load images" (Ctrl-I)
6- The image starts downloading, producing the erroneous output on the status bar.
Comment 8 Sebastien Bacher 2006-08-27 18:05:58 UTC
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/evolution/+bug/57115
Comment 9 B S Srinidhi 2007-06-18 13:51:31 UTC
Created attachment 90207 [details] [review]
Proposed patch to fix this problem

This patch checks for a valid Content-Length HTTP header and calculates the download percentage accordingly. If there's no such valid header, no progress status is shown.
Comment 10 Srinivasa Ragavan 2007-07-06 19:55:17 UTC
Fixed to head.
Comment 11 André Klapper 2007-10-01 02:38:37 UTC
*** Bug 481561 has been marked as a duplicate of this bug. ***
Comment 12 André Klapper 2007-10-16 00:11:18 UTC
*** Bug 486367 has been marked as a duplicate of this bug. ***