Description: We create an .docx document with apache poi and convert it to PDF with jodconverter (wich requires LibreOffice). The TOC (table of contents) was updated in previous versions by adding "<w:fldSimple w:instr="TOC \o "1-3" \h" w:dirty="true"/>" when you opened the generated .docx file. MS-Word and Google-Docs are still able to recognize it, but LibreOffice does not detect the instruction to create the TOC automatically. Also the "Update Index/Indices" does not appear on right-click. When I add a TOC by hand in the opened .docx in LibreOffice, everything works fine. It was tested with MacOS-bigSur(11.2) and MS-Windows-10. Unfortunately i cannot attach the example files here. Actual Results: The "<w:fldSimple w:instr="TOC \o "1-3" \h" w:dirty="true"/>" is not recognized by LibreOffice and sometimes leads to lacking UI. Expected Results: The TOC is automatically created and recognized in LibreOffice. The "Update Index/Indices" can be executed on right-click or triggered programmatically. Reproducible: Always User Profile Reset: No Additional Info: Works with MS-Word and Google-Docs, just "Update Indexes" is required. The TOC instruction is recognized and applied.
Created attachment 169797 [details] generated docx with poi and jodconverter
Created attachment 169798 [details] generated docx uploaded saved and downloaded with google docs
Created attachment 169799 [details] generated docx openened and saved with MS-Word
Created attachment 169800 [details] generated docx opened updated indices and saved with MS-Word
Created attachment 169824 [details] Attachment #169797 [details] in Writer 7.0 and 6.4 In 6.4 an empty TOC was imported, which could be updated (although this did not happen automatically, like in Word). In 7.0 this is missing since: https://cgit.freedesktop.org/libreoffice/core/commit/?id=5cdb14345842c07eb1a466897753da910e9488f8 author Mike Kaganski <mike.kaganski@collabora.com> 2019-12-13 09:36:39 +0300 committer Mike Kaganski <mike.kaganski@collabora.com> 2019-12-16 17:23:57 +0100 tdf#129353, tdf#129402: fix node creation on index import
Adding CC to: Mike Kaganski
For the record: attachment 169797 [details], when opened in Word 2016, asks if one wants to refresh "fields that may refer to other files". Or rejected, the result looks absolutely identical to what LibreOffice shows after the patch mentioned in comment 5. I actually doubt that this is a regression, since under no conditions Word shows the result that we had prior to that. What we miss is handling of the 'dirty' attribute, which we always lacked.
Given the screenshots in comment #5 this is not a macOS bug
Dear Heiko, 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