Bug 1673198

Summary: PDF export not possible to overwrite opened PDF
Product: [Fedora] Fedora Reporter: Esteban DUGUEPEROUX <esteban.dugueperoux>
Component: libreofficeAssignee: Caolan McNamara <caolanm>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: caolanm, dtardon, erack, sbergman
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-07 12:30:08 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:
Attachments:
Description Flags
Image to reproduce the case none

Description Esteban DUGUEPEROUX 2019-02-06 22:18:24 UTC
Created attachment 1527707 [details]
Image to reproduce the case

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Download http://www.compostri.fr/wp-content/uploads/2015/06/Distribution-compost-A46.pdf
2. Open it using libreoffice : #libreoffice Distribution-compost-A46.pdf
3. Insert the attached image
4. Try to export to PDF to the same file => KO
A OK popup displaying following message appears:

"Error saving the document Distribution-compost-A46.pdf:
General Error.
General input/output error."

And the following message is displayed only once for all attempt:

func=xmlSecCheckVersionExt:file=xmlsec.c:line=188:obj=unknown:subj=unknown:error=19:invalid version:mode=abi compatible;expected minor version=2;real minor version=2;expected subminor version=25;real subminor version=26



Additional info:
If I save to .odt and attempt PDF export again, it works.

Comment 1 Caolan McNamara 2019-02-07 10:24:26 UTC
This apparently was done deliberately in 2007, https://bz.apache.org/ooo/show_bug.cgi?id=81437 but without much explanatory notes

Comment 2 Caolan McNamara 2019-02-07 10:32:18 UTC
So, it is possible to change this back, e.g. with https://gerrit.libreoffice.org/#/c/67491/ but I wonder if that is actually a good idea or not

Comment 3 Caolan McNamara 2019-02-07 12:30:08 UTC
I've reverted the restriction in upstream master to experiment if there was a proper reason for the restriction in the first place