Bug 121796 - When calling LibreOffice in server mode via UNO, the produced ODT document may have, in meta.xml, a meta:page-count="1" for a document containing 2 pages.
Summary: When calling LibreOffice in server mode via UNO, the produced ODT document ma...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
5.1 all versions
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-29 10:15 UTC by Gaëtan Delannay
Modified: 2019-08-19 07:04 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 Gaëtan Delannay 2018-11-29 10:15:03 UTC
Description:
Context: I am the developer of appy.pod, a Python library using LibreOffice in server mode via UNO (http://appyframework.org/pod.html). appy.pod allows to define "ODT templates" being ODT documents misusing fields and notes by filling them with Python code. Such a template is pre-processed by appy.pod, and the result, a "pure" ODT document, is then sent to LibreOffice via UNO to apply some changes, like recomputing the table of contents and indexes, optimizing tables columns widths, resolving sections tied to other ODT documents, etc.

The test case: we create, with appy.pod, a master POD template made of hundreds of sub-documents (=sections linked to sub-ODT documents, that will be resolved via UNO to produce a concatenated unique result). Before concatenating the overall result, every sub-document is first created on disk, based on the same POD template. LibreOffice is then called repeatedly via UNO, for every sub-document, to update it. LibreOffice creates on disk the updated versions.

The problem: among the hundreds of ODT files produced by LibreOffice, in some of them, although the number of pages is equal to 2, the attribute meta:page-count="1" in meta.xml indicates "1".

Steps to Reproduce:
0. It is quite tricky to reproduce :-)
1. Create a POD template made of 1 page
2. Call the appy.pod Renderer to create hundreds of ODT documents based on this template. Use the option "forceOoCall" to True to force LibreOffice to load and update every produced ODT document.
3. Unzip every ODT result and check the value of field meta:page-count in meta.xml.

Actual Results:
On some ODT documents, "meta:page-count" is 1 but the document is made of 2 pages

Expected Results:
The attribute "meta:page-count" should reflect the correct number of pages


Reproducible: Sometimes


User Profile Reset: No



Additional Info:
Comment 1 Xisco Faulí 2019-01-14 17:08:29 UTC
Thank you for reporting the bug.
it seems you're using an old version of LibreOffice.
Could you please try to reproduce it with the latest version of LibreOffice
from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to
'UNCONFIRMED' if the bug is still present in the latest version.
Comment 2 QA Administrators 2019-07-14 02:49:23 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2019-08-19 07:03:58 UTC
Dear Gaëtan Delannay,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp