Red Hat Bugzilla – Bug 216537
Can't open .pdf file from evolution.
Last modified: 2007-11-30 17:07:37 EST
I am running RHEL 5 Beta 2 Client.
I received an e-mail with a .pdf attachment. I try to open the attachement with
both document view and Acrobat Reader. These are two options that are presented
me from Evolution.
When I do this I get a no such file or directory error from both document viewer
I have attached the screen shot and the pdf file. Note the pdf file has a .PDF
extentions (upper case) as opposed to a .pdf extension lower case.
Created attachment 141708 [details]
This it the .PDF file that was sent to me.
Created attachment 141817 [details]
Created attachment 141818 [details]
Error from document viewer.
Mishandling the space in the filename ?
Ah, no. In fact, it is the # in the filename that breaks things.
When I tested this with an attachment named "test # 111.pdf", evince was called
with the argument
but looking in that directory, I find a file named test_
I believe the problem is that for viewing attachments, evo calls
em_utils_temp_save_part(), which constructs a temp path and passes it
on to mail_save_part(), which defers the acutal saving to a thread that
calls save_part_save(), which treats the path as an uri and passes
it into camel_stream_vfs_new_with_uri().
The attached (untested) patch should fix the issue.
Created attachment 142657 [details]
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release. Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release. This request is not yet committed for
Forwarded this upstream:
Created attachment 142968 [details]
Verified mclasen's patch and did a bit of extra code cleanup.
Here's what I submitted upstream.
Fixed in evolution-2.8.0-22.el5.
This patch breaks the ability to save attachements.
Cannot save attachements with 2.8.0-22. backed down to 2.8.0-21 and it works
Confirmed that both patches (mclasen's and mine) cause bug #219228.
There's no time to investigate this further before RHEL-5 GA, so the best we can
do revert the patch that caused the regression and defer this to RHEL-5.1.
Patch disabled in evolution-2.8.0-30.el5.
A package has been built which should help the problem described in
this bug report. This report is therefore being closed with a resolution
of CURRENTRELEASE. You may reopen this bug report if the solution does
not work for you.