Bug 93890 - FILEOPEN clean-up of bookmark-start and -end breaks references
Summary: FILEOPEN clean-up of bookmark-start and -end breaks references
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.2.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest, regression
Depends on:
Blocks: Bookmarks
  Show dependency treegraph
 
Reported: 2015-09-03 13:54 UTC by Malte
Modified: 2021-01-02 03:45 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
This python3 script reduces redundant bookmarks without forgetting the references. (3.16 KB, text/plain)
2015-09-03 13:54 UTC, Malte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malte 2015-09-03 13:54:40 UTC
Created attachment 118393 [details]
This python3 script reduces redundant bookmarks without forgetting the references.

Hi,

this affects at least LibreOffice 4.4.2 and 5.0 on Kubuntu 15.04.

LibreOffice Writer 4.3 for reasons unknown to me wraps some elements in multiple bookmarks and references them in a scheme unknown to me later in the document.

Within 4.3 this is fine.


But as of 4.4 Writer cleans up redundant bookmarks without fixing the references which results in "Error: reference source not found" throughout the document.


The proper procedure should be to acknowledge the different bookmarks and amend the references after reducing the bookmarks to one.


I attached a Python script that does that for .fodt (Flat XML ODT) files. It's not pretty and I welcome suggestions for improvement or fixing the issue in 4.4 and 5.0 versions of LibreOffice. I'm pretty sure there are many users of Ubuntu LTS who we spare a headache or two if we fix this before 16.04 (for that it would be good to have the fixed version in Debian until December this year).


Sincerely,

Malte
Comment 1 Malte 2015-09-03 13:59:21 UTC
filed as FILEOPEN as the clean up seems to run on opening documents (in complex document one can acutally see, how the references break one by one...).
Comment 2 Cor Nouws 2015-09-03 15:19:27 UTC
Thanks a lot Malte for the script and the given information.

@Caolan, @Michael .. ideas?
Comment 3 QA Administrators 2016-09-20 10:29:14 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2020-06-04 16:02:06 UTC
(In reply to Malte from comment #0)
> But as of 4.4 Writer cleans up redundant bookmarks without fixing the
> references which results in "Error: reference source not found" throughout
> the document.

How can we reproduce this problem? Please give exact steps.
Comment 5 QA Administrators 2020-12-02 04:06:59 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-01-02 03:45:45 UTC
Dear Malte,

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