Bug 164215 - Restricted editing DOCX - cannot edit allowed region
Summary: Restricted editing DOCX - cannot edit allowed region
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Doc-Protection 120854
  Show dependency treegraph
 
Reported: 2024-12-06 09:53 UTC by Timur
Modified: 2024-12-15 17:17 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
MSO protected section (12.31 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-12-06 09:53 UTC, Timur
Details
perm SPECS.pdf: section of MS documentation about permStart / permEnd (171.43 KB, application/pdf)
2024-12-12 14:41 UTC, Justin L
Details
perm ERRATA.pdf: section of MS Documentation about impelementation errata (54.00 KB, application/pdf)
2024-12-12 14:41 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2024-12-06 09:53:59 UTC
Created attachment 197978 [details]
MSO protected section

In restricted editing DOCX created in MSO, I cannot edit allowed region.

Somewhat similar was bug 122201 but not the same, as LO saved DOCX is properly restricted in MSO.
Comment 1 Aron Budea 2024-12-12 07:37:43 UTC
The following commit in 7.0 made the whole document restricted, before that it was completely editable:
https://cgit.freedesktop.org/libreoffice/core/commit/?id=3af7be613526404276210a698f77e0187831b9b1
author		Justin Luth <justin.luth@collabora.com>	2020-03-11 10:09:29 +0300
committer	Miklos Vajna <vmiklos@collabora.com>	2020-04-01 10:15:29 +0200

tdf#120852 writerfilter: support read-only docProtection
Comment 2 Justin L 2024-12-12 14:39:54 UTC
This is one of the specific instances of bug 120854  asking for feature parity with MS Word's protection scheme.

In Settings.xml, we have the type of protection
    <w:documentProtection w:edit="readOnly" w:formatting="1" w:enforcement="1"/>

and in the document, we have paragraph properties which allow particular paragraphs to be editable (MS documentation refers to it as a special bookmark).
    <w:permStart w:id="2069441988" w:edGrp="everyone"/>
... </w:p> ... <w:p> ...
    <w:permEnd w:id="2069441988"/>

So, this can span PARTS of multiple paragraphs. It also has special table handling, allowing it to affect only a block of columns (rows of course being handled by the placement of permStart / permEnd).
Comment 3 Justin L 2024-12-12 14:41:02 UTC
Created attachment 198087 [details]
perm SPECS.pdf: section of MS documentation about permStart / permEnd
Comment 4 Justin L 2024-12-12 14:41:42 UTC
Created attachment 198088 [details]
perm ERRATA.pdf: section of MS Documentation about impelementation errata