Bug 157658 - saving a change to password protected DOCX makes document unprotected
Summary: saving a change to password protected DOCX makes document unprotected
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
7.5.7.1 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Password-Protected
  Show dependency treegraph
 
Reported: 2023-10-08 11:37 UTC by schmidtnotify
Modified: 2024-08-07 07:00 UTC (History)
1 user (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 schmidtnotify 2023-10-08 11:37:47 UTC
Description:
after saving a change to a password protected text document that document no longer requires a password to reopen. 

Steps to Reproduce:
1. make a change to existing password protected document; close with Save
2. open that document (no password needed)
3.

Actual Results:
subsequently no password needed to open document

Expected Results:
should retain password protection


Reproducible: Always


User Profile Reset: No

Additional Info:
alterntaively there should AT LEAST pop up a warning that Save removes protection and that one needs to use Save As…
Comment 1 Ezinne 2023-10-08 16:20:03 UTC
Not reproducible in:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7ef3d937415185ef66e32dd3043783eddcd03db5
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 2 schmidtnotify 2023-10-08 23:52:20 UTC
In response to Ezinne saying "Not reproducible", I add that document in question has .docx extension, if perhaps that makes a difference. Also, above I added the version number I am using.
Comment 3 Stéphane Guillou (stragu) 2023-10-22 20:42:03 UTC
Can't reproduce either in:

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Nor on macOS:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 2; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Was the password set originally with MS Office or with LibreOffice?
Can you maybe attach an example file?

Please also paste here the full information copied from Help > About LibreOffice.
Comment 4 schmidtnotify 2023-10-25 01:10:22 UTC
[I wanted to send a reply to your email inquiry by email with a screenshot attached, but that email was rejected. So I paste my email here, albeit without the graphic since this field does not accept graphics. I hope it is helpful to you anyway. Thanks for your efforts.]

Yes, the password was originally set in Microsoft Office, but the file has since been Saved As… in Libre Office, which allows for the restoration of the password by newly adding it again. So it actually has been set in LibreOffice.

I cannot send the file in question since it is password protected because it contains confidential information.

I see you tested in MacOS 13.2.1. I run MacOS 13.6.

To reliably reproduce the bug, I close the changed document by clicking on the red Close button (top left corner of document window), which leads to the dialog box shown below. Clicking “Save” in that dialog closes the document, with the change saved. Reopening that file does not require the password.
PastedGraphic-2.tiff

You ask for pasting "the full information copied from Help > About LibreOffice." That is not how it appears on my Mac. The Help menu has no About LibreOffice. About LibreOffice can be found under the LibreOffice menu as the very first entry. It has a Version Information button, which offers this information:
Version: 7.5.7.1 (AARCH64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Mac OS X 13.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Thanks again for your interest and attention.
—Henning

On Oct 22, 2023, at 16:42, bugzilla-daemon@bugs.documentfoundation.org wrote:

Stéphane Guillou (stragu) changed bug 157658 
What Removed Added Ever confirmed   1 CC   stephane.guillou@libreoffice.org Status UNCONFIRMED NEEDINFO Summary saving a change to password protected document makes document unprotected saving a change to password protected DOCX makes document unprotected 
Comment # 3 on bug 157658 from Stéphane Guillou (stragu) Can't reproduce either in:

Version: 7.5.7.1 (X86_64) / LibreOffice Community
Build ID: 47eb0cf7efbacdee9b19ae25d6752381ede23126
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Nor on macOS:

Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 2; OS: Mac OS X 13.2.1; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Was the password set originally with MS Office or with LibreOffice?
Can you maybe attach an example file?

Please also paste here the full information copied from Help > About
LibreOffice.

You are receiving this mail because:
   • You reported the bug.
Comment 5 Stéphane Guillou (stragu) 2023-11-23 10:08:31 UTC
I tested again, still can't reproduce with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c60a9db1f2a8e2a088c6b89bcdff4901b28f2864
CPU threads: 2; OS: macOS 13.2.1; UI render: Skia/Raster; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

* Can you still reproduce in a more recent version, e.g. 7.6.3? Wondering if the resolution of bug 142147 helps.
* Can you try creating a sample document from scratch in which you can reproduce the issue, that you could share (along with its password)?
Comment 6 schmidtnotify 2024-01-08 20:20:15 UTC
I cannot reproduce the bug with a fresh document created from scratch. It continues to bedevil me with the document with which I originally encountered it, however. Now running 7.5.9.2. I don't want to try the less tested (newer) version. I am also not computer proficient enough to understand the resolution of bug 142147.
   I understand that I am not providing enough information for you to help any further. I guess I just have to live with it and remember to always Save As… and manually invoke Save with Password everytime anew.
   Thank you for your efforts.
Comment 7 Stéphane Guillou (stragu) 2024-08-07 07:00:42 UTC
Let's close as "insufficient data" then.

However, there's the option to sanitise the file to remove anything confidential, before attaching it to this bug report.
More on removing data: https://wiki.documentfoundation.org/QA/Bugzilla/Sanitizing_Files_Before_Submission

Please also note that LO 7.5 and even 7.6 are not supported anymore, so we recommend installing version 24.2.
It would be interesting to hear if your issue is resolved in 24.2 or above.

Thank you!