How to test broken behavior of LibreOffice with ODT? [a big document to one page document]

Hi Experts,

We have setup developer code base for LibreOffice and what we found is for one of ODT file, condition “” EQ “” is becoming 0 when we open odt file in LO 25.8

We opened bug but wanted to see how can we test this kind of scenarios in future ourselves with code base

168858 – Conditional Sections Are Improperly Set to 0 When Opened With LibreOffice

Any pointers on this bizarre behavior

Thanks
Abhi

Are you sure you follow all usage recommendations in the bug sample file? Having 100+ tables and practically as many sections in a 1-page document suggests you have no clear idea about your purpose. And many tables and sections in the Navigator are grayed out, meaning they are inaccessible.

As far as I can tell, none of your conditions contains a variable, only constant strings. It is then possible that Writer optimises out your complicated conditions with the result.

IMHO you should first reconsider how your document is built, streamline it and target a much simpler structure.

1 Like

It works fine in 7.6

Also we created this ODT file from 10 page and made 1 page thats why it looks like this.

We deleted lot of data to show issue in 1 page

The Section containing Test 3 failing is visible in 25.8.2.2 & 24.8.3.2 until I change the 0 to “” and then press undo. You might like to update the bug report to show the earlier version.
Update All does not trigger the condition by itself.

When I test with 24.2.4.2 I get 111 pages. I guess the Section containing Test 3 failing is hidden because I cannot see it after page 101 which has Test 2 on it

The Section containing Test 3 failing is hidden in 7.6.7.2 & 6.4.7.2 but I get three pages

We had a big document and wanted to create one page document for quick and clear issue.

Is there a way we can test using LO code to see what’s causing this in 25.8.x so we can identify scope of its impact?

I updated bug as per your suggestion.

Is this the goal of all your conditional texts? To create a summary from exhaustive text? If so, I think there is a simpler and more efficient way to do it by using master+subdocuments eventually with the help of templates containing “patched” styles. But I need to understand the logic behind it: how text is structured, how “summary elements” are marked up, the general workflow.

We have 1000s of forms beyond our control.

As form works fine in 7.x they expect same should work in 25.x

They fixed iasue by moving all text sections as table tow and putting in 1 table.

Thats not solution as we need to find out impact of this bug before we can roll out new LibreOffice to all.

Thanks
Abhi