Bug 140987 - Conversion to pdf using LibreOffice 7.0.4 fail in Oracle Linux Server 8.3
Summary: Conversion to pdf using LibreOffice 7.0.4 fail in Oracle Linux Server 8.3
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.0.4.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-12 18:11 UTC by Arnab Mallik
Modified: 2021-03-16 08:22 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
source file (2.12 KB, application/msword)
2021-03-12 18:12 UTC, Arnab Mallik
Details
log file (3.18 MB, text/plain)
2021-03-12 18:13 UTC, Arnab Mallik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnab Mallik 2021-03-12 18:11:20 UTC
Description:
Using Oracle Linux Server 8.3 and trying to convert rtf to pdf using LibreOffice 7.0.4 and the conversion fails.
Running the following command as root

./soffice --headless --convert-to pdf --outdir /tmp /tmp/abc.rtf
 

The output seen is

convert /tmp/abc.rtf -> /tmp/abc.pdf using filter : writer_pdf_Export

Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/abc.pdf> failed: 0xc10(Error Area:Io Class:Write Code:16) /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3153 /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1735)

Strangely, all other conversion works as expected (rtf to html, rtf to doc, rtf to odt).
Also, I tried to convert rtf to pdf using LibreOffice 5.1.2.2 on the same Oracle Linux Server 8.3 and the conversion worked.
Content of abc.rtf is simply – Hello World.

Steps to Reproduce:
1. Create a simple rtf file
2. ./soffice --headless --convert-to pdf --outdir <dir_name> abc.rtf
3. Conversion fail

Actual Results:
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/abc.pdf> failed: 0xc10(Error Area:Io Class:Write Code:16) /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:3153 /home/buildslave/source/libo-core/sfx2/source/doc/sfxbasemodel.cxx:1735)

Expected Results:
rtf to pdf conversion successful


Reproducible: Always


User Profile Reset: Yes



Additional Info:
conversion successful using LibreOffice 5.1.2.2 on the same Oracle Linux Server 8.3
Comment 1 Arnab Mallik 2021-03-12 18:12:40 UTC
Created attachment 170444 [details]
source file

to convert to pdf
Comment 2 Arnab Mallik 2021-03-12 18:13:54 UTC
Created attachment 170445 [details]
log file
Comment 3 Arnab Mallik 2021-03-12 21:33:34 UTC
Addition findings:-

1> pdf conversion FAILS when the Oracle Linux 8.3 is secured.
2> pdf conversion SUCCEEDS when OL8 is unsecured.
Comment 4 Arnab Mallik 2021-03-12 21:35:16 UTC Comment hidden (obsolete)
Comment 5 Julien Nabet 2021-03-13 11:18:34 UTC
On pc Debian x86-64 with master sources updated or with LO Debian package 7.0.4, I don't reproduce this.

What do you mean when you say "when the Oracle Linux 8.3 is secured", what are the precise changes between "secured" and "not secured"?
Comment 6 Arnab Mallik 2021-03-15 21:59:06 UTC
Secured means some custom rules are applied.
Permission to some directories is prohibited.

An interesting development, I downloaded master_dbg~2021-03-14_18.57.09_LibreOfficeDev_7.2.0.0.alpha0_Linux_x86-64_archive.tar.gz from https://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@86-TDF-dbg/2021-03-14_18.57.09/ and the conversion works in secured OL8.
Can you please provide an rpm version of that build?
Or look into the bug??
Comment 7 Julien Nabet 2021-03-16 07:41:22 UTC
About rpm providing, I don't know.
I can't help here=>uncc myself.
Comment 8 Timur 2021-03-16 08:22:36 UTC
This looks like WFM. 
Sorry for not understanding this but so far seems like it can be closed. 
Rpm is also at https://dev-builds.libreoffice.org/daily/master/current.html