Bug 1966244

Summary: Printing email to file does not work
Product: [Fedora] Fedora Reporter: Giovanni Campagna <scampa.giovanni>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 34CC: caillon+fedoraproject, lucilanga, mcrha, rstrode, sandmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-05-31 17:48:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Giovanni Campagna 2021-05-31 17:43:41 UTC
Description of problem:
Printing any email to a PDF file does not work. The print dialogue appears to work correctly, and it is possible to select a location for the printout, but either it fails with "No such file or directory", or no file appears.

Version-Release number of selected component (if applicable):
evolution-3.40.1-1.fc34.x86_64

(tested in Fedora 34 Silverblue but evolution is installed as rpm-ostree overlay not Flatpak)

How reproducible:
Always

Steps to Reproduce:
1. Select any email
2. Click Print
3. Select Print to File
4. Confirm the location

Actual results:
No PDF is generated. An error appears in the email window, if the location is not the home directory.

Expected results:
A PDF with the email printout is generated.

Additional info:
I think this is a bug in webkitgtk, and probably affects print to file in any webkitgtk apps, but I haven't tested it.
The WebkitWebProcess is run in a flatpak-like sandbox that does not share the filesystem with the real home directory, so the printout goes nowhere. webkitgtk should remove the sandbox or use the flatpak portal to open the file to print.

Comment 1 Milan Crha 2021-05-31 17:48:02 UTC
Thanks for a bug report. This particular one had been reported already, thus I'm marking it as a duplicate.

*** This bug has been marked as a duplicate of bug 1896902 ***