Bug 136936 - In a Master doc with sub-docs whose links have write-protection removed, editing the sub-doc within the master then saving the master only saves the master and drops the sub-docs changes
Summary: In a Master doc with sub-docs whose links have write-protection removed, edit...
Status: RESOLVED DUPLICATE of bug 118122
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 15:41 UTC by ghherlin@gmail.com
Modified: 2021-08-03 14:08 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 ghherlin@gmail.com 2020-09-21 15:41:04 UTC
Steps to reproduce:
1) Make 2 docs, sub1.odt and sub2.odt, inserting a little text, anything will do
2) Make master doc master.odm
3) add sub1 and sub2 as links to master using Navigator
4) in Navigator, choose Edit Link and uncheck sub1 and sub2's  Write Protection > Protected check
5) save master.odm
6) in master LOWriter window, modify the sub1.odt text (there is no warning)
7) save master.odm
8) close everything
9) reopen master.odm
10) say yes to "update links" 

Observed behaviour:
a) the modifications made at point 6 have been lost, and 
b) the file timestamps indicate that only master.odm has been saved.

Expected behaviour, one of the following:
A) Preferred, as this is the most useful: All modified sub-files are saved and the master not since it is unchanged. If you skip the save at point 5, both master and sub1 should be saved.
B) Safe but not very satisfactory IMO: Make it impossible to remove the link write-protection feature
C) Silly as it is functionally equivalent to B) IMO, but still better than time-wasting human work loss: A warning pops up, saying "this will not be saved"
Comment 1 Buovjaga 2021-07-26 15:32:11 UTC
Hmm, seems there is another bug as I can't uncheck Protect - it comes back after I OK and edit again.

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 67e47070a7580a17804adce812cc2f98bfe7b51f
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: x11
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Comment 2 Buovjaga 2021-07-30 16:06:26 UTC
(In reply to Buovjaga from comment #1)
> Hmm, seems there is another bug as I can't uncheck Protect - it comes back
> after I OK and edit again.

I bisected it: bug 143626
Comment 3 Buovjaga 2021-08-03 14:08:17 UTC
I found an earlier report, closing

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