Bug 161910 - set checkbox presets for the save dialog when saving an existing file with a new name (according to the settings from the existing file)
Summary: set checkbox presets for the save dialog when saving an existing file with a ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: OpenPGP
  Show dependency treegraph
 
Reported: 2024-07-05 11:35 UTC by Moritz Duge (a.k.a. kolAflash)
Modified: 2024-07-20 03:14 UTC (History)
0 users

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 Moritz Duge (a.k.a. kolAflash) 2024-07-05 11:35:25 UTC
1. problem:
Steps to reproduce:
1. Create a file and save with GPG encryption.
2. Close file.
3. Open file.
4. File -> Save As
Problem: "Save with password" is preselected, not "Encrypt with GPG key"

2. problem:
https://git.libreoffice.org/core/+/ca5c9591ba38ad83415a2d4ced98bfc74d30b032/sfx2/source/dialog/filedlghelper.cxx#1420
mbPwdCheckBoxState becomes also set to true if the file is GPG encrypted. (not with a password

3. problem:
https://git.libreoffice.org/core/+/ca5c9591ba38ad83415a2d4ced98bfc74d30b032/sfx2/source/dialog/filedlghelper.cxx#1538):
LO also asks for a password if `CHECKBOX_GPGENCRYPTION` && `CHECKBOX_PASSWORD` are checked. But only encrypts using GPG and discards the password.


Problems moved here from: bug 158839 comment 1:
[META] OpenPGP bugs and enhancements

At least broken since LO 24.2. (maybe earlier)
Comment 1 Moritz Duge (a.k.a. kolAflash) 2024-07-05 11:40:03 UTC
Nice-To-Have:
Write a test to check, of a just GPG-encrypted-saved and still opened document also gets encrypted with GPG when saving again (save, not save-as).