Bug 90232 - Can't insert master documents into master documents
Summary: Can't insert master documents into master documents
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Master-Doc
  Show dependency treegraph
 
Reported: 2015-03-25 17:19 UTC by José M. R. Amores
Modified: 2022-02-08 19:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description José M. R. Amores 2015-03-25 17:19:03 UTC
Use the following was an example of a fairly complex master document that unifies several other documents and master documents. It's basic structure is something like this:

everything (master document)
   introduction (writer document)
   other stuff (writer document)
   chapters (master document)
      chapter 1 (master document)
         chapter 1 theme (writer document)
         chapter 1 development (writer document)
      ...
      chapter N (master document)
         chapter N theme (writer document)
         chapter N development (writer document)
   conclusion (writer document)
   index

Regardless of the "why" for such a document, this structure was working very well. However, when I upgraded my LibreOffice to 4.4.1.2 the document stopped to work properly, specifically, LibreOffice says that it cannot find the .odm files inside the parent master document, but if I try to edit one of them it opens it without a problem:

everything (master document) -> Opens, does not show sub documents of type .odm
   [...]
   chapters (master document) -> appears on the list of sub-documents, is not found by the parent master document, but right-click->Edit opens it
      chapter 1 (master document) -> appears on the list of sub-documents, is not found by the parent master document, but right-click->Edit opens it
         chapter 1 theme (writer document)
         chapter 1 development (writer document) 
   [...]

At first I thought that it was some missing configuration and made a request for assistance on ask.libreoffice.org (http://ask.libreoffice.org/en/question/47932/my-master-document-does-not-parses-a-sub-master-document/), however user 'oweng' demonstrated that it was actually an inconsistent behaviour from LibreOffice:

"Ok. That explains what I am seeing under v4.2. I have now tested behaviour under versions: 3.3.41, 3.4.6.2, 3.5.7.2, 3.6.7.2, 4.0.6.2, 4.1.6.2, 4.2.8.2, 4.3.5.2, and 4.4.1.2. Only the 3.6, 4.0, and 4.1 series allow insertion of an ODM into an ODM. It would be worth raising a bug report to get the behaviour clarified.
oweng (Mar 21 '15)"

The insertion of an ODM into another ODM is a quite useful functionality, and I am uncertain if it is and error of those previous versions of LibreOffice or from the more recent ones. Please notice that no warning is raised on those ODM's, actually on LibreOffice 4.4 I can select an ODM to insert into my master document but then LibreOffice does nothing at all, not even warns about such a action not being possible/permited.
Comment 1 Owen Genat (retired) 2015-04-03 03:28:43 UTC
As per my comment (quoted from the related AskLO thread) this can be confirmed. Status set to NEW. It would be good to clarify why v3.6, v4.0, and v4.1 allowed the indicated behaviour. Possible regression thus "PossibleRegression" tag added to whiteboard.
Comment 2 Robinson Tryon (qubit) 2015-12-09 18:27:05 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-01-03 19:42:50 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2019-12-03 14:34:50 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2021-05-05 11:17:41 UTC
Steps:
1. Create two master documents
2. In one of them, try to insert the other one

Bibisected with Linux 43max to
https://git.libreoffice.org/core/commit/805fd1ca343d6295b8114a24cc29bdac332f266d
fdo#78742: SfxFilterMatcher: respect requested document service if set

Adding Cc: to Michael Stahl

Some other already fixed ones:
bug 101813
bug 118578