Bug 161270 - word file with restricted editing does not open properly in writer
Summary: word file with restricted editing does not open properly in writer
Status: RESOLVED DUPLICATE of bug 120854
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-25 06:42 UTC by johnks
Modified: 2024-05-26 14:14 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
file with password "test" (6.16 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-05-25 06:42 UTC, johnks
Details
file without password (6.16 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2024-05-25 06:43 UTC, johnks
Details
pdf generated from word (156.11 KB, application/pdf)
2024-05-25 06:43 UTC, johnks
Details
pdf export from linux (122.44 KB, application/pdf)
2024-05-25 06:45 UTC, johnks
Details
pdf export from windows (80.74 KB, application/pdf)
2024-05-25 06:45 UTC, johnks
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnks 2024-05-25 06:42:17 UTC
Description:
i have attached a sample file.

the file opens properly in word 2020, it contains restricted editing and 3 rich form controls that are under a password "test". 

i expect the file to work in the same system and render properly and only allow editing in the 3 rich text control fields and no where else but none of that is working

Steps to Reproduce:
1. open file in word. compare with attached pdf that was generated from word
2. open file in writer
3.

Actual Results:
1. layout not according to word sample
2. does not respect file editing restrictions.

Expected Results:
file should exhibit the following behaviour.
1. it should render same as in word. layout 
2. only rich controls should be editable 
3. should not be able to edit rest of file
4. missing font should be replaced with alternates at least


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 12; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded


and

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-IN (en_IN); UI: en-US
Calc: threaded
Comment 1 johnks 2024-05-25 06:42:51 UTC
Created attachment 194342 [details]
file with password "test"

test

password to enable editing in word
Comment 2 johnks 2024-05-25 06:43:07 UTC
Created attachment 194343 [details]
file without password
Comment 3 johnks 2024-05-25 06:43:30 UTC
Created attachment 194344 [details]
pdf generated from word

writer should output like this
Comment 4 johnks 2024-05-25 06:45:19 UTC
Created attachment 194345 [details]
pdf export from linux
Comment 5 johnks 2024-05-25 06:45:32 UTC
Created attachment 194346 [details]
pdf export from windows
Comment 6 johnks 2024-05-25 06:47:09 UTC
i have already given 2 versions of windows and linux. they both seem to render the file differently, perhaps because they are different versions
Comment 7 m_a_riosv 2024-05-25 10:38:27 UTC
Sorry, but neither of the two sample files asks for a password.
Comment 8 m_a_riosv 2024-05-25 10:39:02 UTC
Sorry, opening with Word or Writer
Comment 9 johnks 2024-05-25 11:11:11 UTC
(In reply to m_a_riosv from comment #8)
> Sorry, opening with Word or Writer

sorry for not giving instructions

https://erinwrightwriting.com/restrict-editing-in-microsoft-word/

follow this guide.

add developer then restricted editing.

it will ask to remove password
Comment 10 johnks 2024-05-25 11:14:27 UTC
i set the bug to new wrongly. i am changing it to unconfirmed
Comment 11 m_a_riosv 2024-05-25 14:06:02 UTC
Please attach a sample file with that kind of protection in it.
Comment 12 johnks 2024-05-25 14:35:05 UTC
(In reply to m_a_riosv from comment #11)
> Please attach a sample file with that kind of protection in it.

https://bugs.documentfoundation.org/attachment.cgi?id=194342

this file
Comment 13 m_a_riosv 2024-05-26 14:14:35 UTC
Please add there your comment.

*** This bug has been marked as a duplicate of bug 120854 ***