Bug 143428 - Master Document doesn't update images in header when updated in subdocument
Summary: Master Document doesn't update images in header when updated in subdocument
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2021-07-18 08:24 UTC by csongor
Modified: 2023-08-04 03:18 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
subdocument (19.47 KB, application/vnd.oasis.opendocument.text)
2021-07-18 08:24 UTC, csongor
Details
Master Document (19.55 KB, application/vnd.oasis.opendocument.text-master)
2021-07-18 08:25 UTC, csongor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csongor 2021-07-18 08:24:39 UTC
Created attachment 173654 [details]
subdocument

Headers of subdocuments are copied into the Master Document instead of just referring to them. 

Preparation:
===========

Create a new page style:
- Start a new Writer document
- View -> Styles -> Page Styles -> Right click -> New
- Organiser tab -> Name = "Demo"
- Header tab -> Header On
- OK

Apply the style:
- Right-click on the Status Bar
- select "Demo"

Compose the subdocument:
- type "CONTENT" into the body of the document
- click in the header
- type "HEADER"
- Insert -> Image-> image.png
- right-click on the image -> Anchor -> To Paragraph
- right-click on the image -> Wrap -> Edit Contour
- draw a contour that contains the whole image, apart from a gap on the left-hand side (as if cut out a smaller rectangle from the whole one)
- click Apply 
- close the contour editor
- drag the image partly over the word "HEADER" so that the word is visible behind the cut-out part of the image.
- File -> Save As "sub.odt"

Create a Master Document:
- File -> New -> Master Document
- righ-click in the Navigator -> Insert -> File -> select "sub.odt"

Further Preparation
===================
- Click in the word "CONTENT" and try to edit it. You can't. "Write-protected content cannot be changed." is displayed. This is good. 
- Click on the word "HEADER". You can edit it. I think you shouldn't be able to because it comes from the subdocument.
- go back to sub.odt again
- change "CONTENT" to "2-CONTENT" 
- change "HEADER" to "2-HEADER"
- change the contour of the image so that the cut-out is much larger
- File -> Save
- go back to the Master Document
- in the Navigator, click Update All -> click Yes to confirm

Symptoms
========
- "CONTENT" became "2-CONTENT". This is good.
- "HEADER" did not change to "2-HEADER". This seems to be a bug.
- the shape cut-out did not change. This also seems to be a bug.

Problem in a use-case
=====================
Now, I cannot move any changes from the header of the subdocument into the master. I need to retype the header content in the master document, re-draw the same contour of the image in the master, and so on. This is very painful.


How to reproduce the bug easily:
- open the attached "sub.odt" and "master.odt"
- see the headers' content are different
- change anything in sub.odt header
- see that the master document does not reflect these changes.
Comment 1 csongor 2021-07-18 08:25:11 UTC
Created attachment 173655 [details]
Master Document
Comment 2 Buovjaga 2021-07-18 14:51:22 UTC
Repro with examples

NixOS
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: b1df9c67349cf4cc5be4128d797aefb87f50e38f
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 3 Buovjaga 2021-08-03 14:40:58 UTC
I also reproduced from scratch and already with earliest commits of 6.3 and 43all bibisect repos (Linux)
Comment 4 QA Administrators 2023-08-04 03:18:55 UTC
Dear csongor,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug