The editing of DOCX documents can be restricted to filling in forms in Microsoft Word: these documents can be still modified just like a normal document until a password is added to the file. After that, only the form control elements can be interacted with.
When a DOCX document that has the “restricted to filling in forms” option turned on, but isn't protected with a password is opened first in LibreOffice, it appears just like a regular, editable document. But after the file is saved as DOCX and reopened, it turns into read only document.
Steps to Reproduce:
1. Create a new document in Microsoft Word.
2. Type in some text (no form control elements are actually needed).
3. Go to the Developer tag and click on the Restricted Editing button.
4. Select the “Filling in forms” option under “2. Editing restrictions”.
5. Save the file as DOCX and close Microsoft Word.
6. Open the DOCX file in LibreOffice Writer and try to change it: you can edit it just like a regular document.
7. Save the file as DOCX, and click on File > Reload.
The document turns into read only.
The document shouldn't be read only because it isn't yet protected with a password yet.
User Profile Reset: No
Created attachment 146483 [details]
The original file created in Microsoft Word 2013.
Created attachment 146484 [details]
The file exported with LibreOffice 6.2Dev.
Created attachment 146485 [details]
A screenshot showcasing the issue.
The description needs refining, this document isn't actually protected/restricted, only the parameters are given. In Word have to press "Yes, Start Enforcing Protection", and then have the option, but don't need to add a password.
The issue is that after saving in Writer the document actually becomes protected/restricted. It's a bug, but personally I don't think it's a significant one, I doubt documents are often shared like this.
I don't think it's a regression, but the document became protected after https://cgit.freedesktop.org/libreoffice/core/commit/?id=2694162969cf86ef366d3ce812fccd0630acc800
author Serge Krot <Serge.Krot@cib.de> 2017-09-29 18:01:54 +0200
committer Thorsten Behrens <Thorsten.Behrens@CIB.de> 2017-10-06 08:06:59 +0200
commit 2694162969cf86ef366d3ce812fccd0630acc800 (patch)
parent b567cfb980435df131d776915bce9152135bdf0f (diff)
tdf#66398 Import/export docx document protection properties
+ import/export of all doc protection properties
+ unit test
@Serge Krot, would you mind taking a look at this issue when you have some spare time ?
fixed in LO 6.3 by commit 0898595532d1e3f498c259b6dfee462249b00667
Author: Serge Krot Mon Dec 17 17:07:23 2018 +0100
sw: DOCX: allow editing of unprotected areas in protected doc