https://bugs.documentfoundation.org/show_bug.cgi?id=154747
Bug ID: 154747
Summary: write error when saving a xlsx file with gpg
encryption (and unexpected result with ods+gpg)
Product: LibreOffice
Version: 7.4.4.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: [email protected]
Reporter: [email protected]
Description:
when I try to save and encrypt the spreadsheet using xlsx format I get a "write
error" message box (with nothing useful to know the error)
saving in ods + gpg encryption format works (but produce unexpected result see
information below).
suspecting similar issue on other documents (writer...) when using microsoft
format
Steps to Reproduce:
1.open a spreadsheet
2.file->save as
3.choose xlsx file format
4.check "encrypt with gpg key"
Actual Results:
1.the key chooser is displayed
2.when saving a error message box is displayed "write error, the file could not
be written"
Expected Results:
a binary encrypted file
Reproducible: Always
User Profile Reset: No
Additional Info:
seems that when saving ods+gpg file the content is encrypted but the container
remain a zip
for compatibility with ms office, which I think don't support "in archive pgp
file encryption", I would have expected to have the file be the result of "gpg
-e file" and have a file type of "PGP/MIME-encrypted message header"
same for ODS file by the way... this could even create "dual encryption" : the
"save with password" option act as described by
https://support.microsoft.com/en-us/office/protect-a-document-with-a-password-05084cc3-300d-4c1a-8416-38d3e37d6826
and GPG encryption should encrypt the result file as if it was an email
attachement.
so, when opening a file with a xlsx or ods extension, if the file type is
"PGP/MIME-encrypted message header" the gpg key is prompted, then the file
decifered, the result is opened as a regular file (so password is prompted if
file is password protected...)
on saving, the file is saved as the requested format, applying password
protection if requested, then piped to gpg to encrypt the result
--
You are receiving this mail because:
You are the assignee for the bug.