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 440919 - Evolution can't attach "zero length" files
Evolution can't attach "zero length" files
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.12.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[attachments] evolution[kill...
Depends on:
Blocks:
 
 
Reported: 2007-05-24 11:11 UTC by Milan Crha
Modified: 2009-05-13 01:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Milan Crha 2007-05-24 11:11:53 UTC
Forwarding from a downstream bug report:
http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=233184

Description of problem:

Trying to send /proc/bus/usb/devices as an attachment eventually times out with
a rather hilarious error message:

Cannot append message to mbox file: /home/ajax/.evolution/mail/local/Outbox:
Connection timed out

However, copying the file aside and attaching the copy works just fine. 
/prov/bus/usb/devices is listed as 0 bytes long in ls, so it's probably just evo
getting stuck waiting for zero bytes forever.

Version-Release number of selected component (if applicable):
evolution-data-server 1.11.2
---------------------------------------------------------------------

Based on my observations, at evolution-data-server/camel/camel-file-utils.c is in function camel_read used function select, which waits for max 4 minutes on response from device, and if it will fail (timeout), then the result is an error message mentioned above.
Comment 1 Matthew Barnes 2008-03-11 01:00:44 UTC
Bumping version to a stable release.
Comment 2 Matthew Barnes 2009-04-16 19:17:53 UTC
With the attachment rewrite this actually crashes Evolution because of a divide-by-zero while reporting loading progress.  Flagging this so I remember to fix it once the initial patch is in.
Comment 3 Matthew Barnes 2009-05-13 01:47:53 UTC
Fixed this special case in
http://git.gnome.org/cgit/evolution/commit/?id=f8c480420f3129fce7ff06551d74a41f97fde216