Bug 97392 - -convert-to does not work for password-protected files
Summary: -convert-to does not work for password-protected files
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.2.8.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Commandline
  Show dependency treegraph
 
Reported: 2016-01-27 12:48 UTC by Thomas Seeling
Modified: 2024-03-30 03:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Seeling 2016-01-27 12:48:04 UTC
I can convert normal files on the command line but conversion fails for password-protected files.
I'd like to see some kind of option to provide the password for the file.

libreoffice -env:UserInstallation=file:///tmp/lo-tmp.$$ --headless --convert-to html test.ods

silently does *nothing*. Not even an error message that a protected file can't be converted.
Comment 1 Buovjaga 2016-01-28 17:23:39 UTC
Sounds like a fair request.
Comment 2 QA Administrators 2017-03-06 13:44:24 UTC Comment hidden (obsolete)
Comment 3 Thomas Seeling 2017-03-06 14:12:22 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2018-03-07 03:41:57 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2020-03-07 03:19:18 UTC Comment hidden (obsolete)
Comment 6 Thomas Seeling 2020-03-07 11:43:58 UTC
RHEL 7.7, Libreoffice 6.1.4.2
Bug is still present but at least it gives an error message now.
Message is not reporting actual problem, but it's an improvement.

Error: source file could not be loaded

Command used to test:

scalc -env:UserInstallation=file:///tmp/lo-tmp.$$ --headless --convert-to html test.ods
Comment 7 QA Administrators 2022-03-08 03:44:45 UTC Comment hidden (obsolete)
Comment 8 Timur 2022-03-30 15:09:59 UTC
Repro 7.4+. As in bug 148253, I note that failed convert should give error status that is not 0.
Comment 9 QA Administrators 2024-03-30 03:14:24 UTC Comment hidden (spam)