Bug 120857 - FILEOPEN DOC protected without pw can be edited
Summary: FILEOPEN DOC protected without pw can be edited
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:doc
Depends on:
Blocks: DOC-Doc-Protection
  Show dependency treegraph
 
Reported: 2018-10-24 06:31 UTC by Aron Budea
Modified: 2021-11-24 16:46 UTC (History)
0 users

See Also:
Crash report or crash signature:
Regression By:


Attachments
Sample DOC, protected (29.00 KB, application/msword)
2018-10-24 06:31 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2018-10-24 06:31:49 UTC
Created attachment 145956 [details]
Sample DOC, protected

The attached DOC has been created and set to protected in Word via Review -> Restrict Editing, with editing restrictions set to No changes (Read Only).
When opened in Writer, there's no editing restriction on the document.

With password set, there's a different issue, see bug 104494.

Observed using LO 6.2 alpha1 & 3.3.0 / Windows 7.
Comment 1 Dieter 2018-10-24 07:11:35 UTC
The document is opened in read-only mode, but you can choose "Edit document". In Word 2016 (German UI) I choose "Bearbeitung aktivieren" (Edit document?) and "Schutz aufheben" (disable protection?).

So for me it's not clear, waht do you expect in LO, Aron.
Comment 2 Aron Budea 2018-10-24 13:29:34 UTC
Thanks for checking, Dieter! For me in Writer it opens as editable, there's no editing restriction on the document, that is the problem.
Comment 3 Timur 2018-10-24 17:05:25 UTC
I confirm the report but I'm not sure this is different from Bug 104494. 
Because LO doesn't understand Restrict Editing and this is just another case, more simple one.
Comment 4 Aron Budea 2018-10-24 20:43:31 UTC
(In reply to Timur from comment #3)
> I confirm the report but I'm not sure this is different from Bug 104494. 
> Because LO doesn't understand Restrict Editing and this is just another
> case, more simple one.
Yes, I opened bug 120854 on the general support of this feature (ie. being able to adjust the settings in Writer in similar manner to Word, feature differences considered). Importing/exporting the setting is easier to support, and restricting editing to form fields is already supported, which is another subset of the feature. Otherwise I'm not sure how similar the issue is to bug 104494, the symptoms are rather different, that's why I decided opening a new ticket. Thanks for checking!
Comment 5 QA Administrators 2019-11-02 03:46:12 UTC Comment hidden (obsolete, spam)
Comment 6 Justin L 2020-03-09 11:27:25 UTC
Likely the issue is related to Dop2003's fTreatLockAtnAsReadOnly (1 bit): Specifies whether DopBase.fLockAtn means read-only
protection instead of protect for comments. By default, this value is 0.

I don't think we parse Dop2003, or anything newer than Dop97 actually (although mso-dumper.py recognizes up to Dop2007). There are lots of Dop20XXs. https://docs.microsoft.com/en-us/openspecs/office_file_formats/ms-doc/7ac3aac1-e3c9-4aff-a366-0d6f67ddb6fb