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 358010 - camel: Fix Win32 bugs when using attachments
camel: Fix Win32 bugs when using attachments
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
1.8.x (obsolete)
Other Windows
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 375888 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-09-27 18:38 UTC by Steffen
Modified: 2013-09-10 13:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
win32-patch (2.02 KB, patch)
2006-09-27 18:43 UTC, Steffen
none Details | Review
patch2 (1.96 KB, patch)
2006-09-29 15:01 UTC, Steffen
committed Details | Review

Description Steffen 2006-09-27 18:38:54 UTC
Please describe the problem:
I'm using evolution 2.8 / eds 1.8 on Win32

1. You can not add attachments to a mail.
2. If you try to open an attachment by double-clicking on it, nothing happens.
3. If you save an attachment, the file isn't closed correctly, that means you can't delete it, until evolution is closed.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Steffen 2006-09-27 18:43:20 UTC
Created attachment 73507 [details] [review]
win32-patch

The patch uses g_filename_to_uri()/g_filename_from_uri() becuase win32 uris are a bit special (i.e. file:///c:/test.txt is valid and the path would be c:/test.txt)

And it uses gnome_vfs_close() instead of close() to close streams.
Comment 2 André Klapper 2006-09-28 13:03:12 UTC
tml: ping - patch attached
Comment 3 Tor Lillqvist 2006-09-28 13:24:58 UTC
Looks fine to me. Calling close() on a GnomeVFSHandle* is a pretty serious bug, heh, great catch. (The compiler surely must warn about it, but nobody has noticed/cared?)

(Couldn't g_filename_to/from_uri() be used on all platforms here, even, or do we want to avoid the risk of doing so breaking something on Unix?)

Anyway, Andre, feel free to commit this.
Comment 4 Steffen 2006-09-29 15:01:33 UTC
Created attachment 73640 [details] [review]
patch2

There was a memleak in the old patch, so here is a new one.
Comment 5 Srinivasa Ragavan 2006-10-05 13:58:53 UTC
Please commit.
Comment 6 Tor Lillqvist 2006-10-05 14:18:20 UTC
Committed: 

2006-10-05  Tor Lillqvist  <tml@novell.com>

	Fixes from Steffen Eschenbacher:

	* camel-stream-vfs.c (camel_stream_vfs_finalize): Call
	gnome_vfs_close() on the GnomeVFSHandle *, not close(). (#350576,
	#350885, #358010)

	* camel-url.c (camel_url_new_with_base, camel_url_to_string): On
	Win32, for file: urls, simply call g_filename_{to/from}_uri.
	(#358010) We could do this on all platforms maybe?
Comment 7 Sergey Kolosov 2006-11-21 14:29:56 UTC
*** Bug 375888 has been marked as a duplicate of this bug. ***