Bug 44131 - Bookmarks deleted by undo TABLE sort (EDITING)
Summary: Bookmarks deleted by undo TABLE sort (EDITING)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.3.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Undo-Redo
  Show dependency treegraph
 
Reported: 2011-12-24 16:45 UTC by G.King
Modified: 2025-12-05 07:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Demo of undesired deletion of bookmarks (9.58 KB, application/vnd.oasis.opendocument.text)
2011-12-24 16:45 UTC, G.King
Details
Screencast showing problem (4.50 MB, video/mp4)
2025-12-05 07:25 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description G.King 2011-12-24 16:45:48 UTC
Created attachment 54799 [details]
Demo of undesired deletion of bookmarks

PREAMBLE:
The attached document is a very simple specimen "academic paper" in which references (to other papers), indicated by numbers in square brackets, are resolved in a Table at the end of the document.  

The author's intention is (i) to create references in arbitrary order, as they occur when writing the document.  Just before publication, the references are to be sorted (ii) into alphabetical order of lead author.  The Table of References is to be automatically renumbered (iii), and the references in the text of the document are to be renumbered accordingly (iv).  This is a reasonable and standard requirement in writing such a document.

Each reference in the Table of References is indexed by a Field of type Number Range.  This is in order to facilitate the renumbering of references at step (iii) above.  For each reference in the Table, the reference number is bookmarked.  The bookmark is used to insert the reference number into the main text of the document.

Just before publication, the author selects the entire Table (Table, Select table) and sorts in on column 2.  Selecting the first column of the table, and updating the fields (<F9>, or Tools, Update Fields), causes the desired renumbering both in the Table and the main text of the document.

So far, so good.

THE BUG:
If the author then selects Edit, Undo sort table, all the bookmarks are lost.

CONSEQUENCES:
These are likely to be severe.  This technique is typically used in long and complex documents with a large number of references.  The impact would be felt close to a publication deadline, and the information loss incurred would make recovery difficult.
Comment 1 sasha.libreoffice 2012-05-02 22:01:56 UTC
Thanks for bugreport.
reproduced in 3.3.4 and 3.5.3 on Fedora 64 bit
Before we use Undo, in first cell of table is these tags:
<text:bookmark-start text:name="Archimedes"/>
<text:bookmark-end text:name="Archimedes"/>
after use Undo they disappears. Content lost.

Changing version to 3.3.4 as most early reproducible
Comment 2 Rainer Bielefeld Retired 2012-07-04 22:23:35 UTC
Still [Reproducible] with reporter's sample and parallel installation of Master "LOdev " 3.7.0.0.alpha0+   - WIN7 Home Premium (64bit) ENGLISH UI [Build ID: 3985521]" (tinderbox: W2008R2@16-minimal_build, pull time 2012-06-24)

@Cédric:
Please set Status to ASSIGNED and add yourself to "Assigned To" if you accept this Bug
Comment 3 G.King 2013-03-04 16:12:12 UTC
Still [Reproducible] in 4.0.0.3 (OSX)
Comment 4 Cédric Bosdonnat 2014-01-20 08:57:11 UTC Comment hidden (noise)
Comment 5 Joel Madero 2015-05-02 15:41:53 UTC Comment hidden (obsolete)
Comment 6 G.King 2015-05-02 23:49:15 UTC
Bug is still present in LO 4.3.5.2 (OSX) and in 4.2.6.3 Build ID 4.2.6.3-5.el7 under Linux.  The latter is the most recent build available in Centos7.

I'll install a VM with a more recent LO, and report back (might take a few days).
Comment 7 QA Administrators 2016-09-20 09:37:42 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-12-03 13:59:31 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2021-12-03 04:24:12 UTC Comment hidden (obsolete)
Comment 10 Rainer Bielefeld Retired 2021-12-04 08:00:24 UTC
😥
Comment 11 QA Administrators 2023-12-05 03:16:21 UTC Comment hidden (obsolete)
Comment 12 QA Administrators 2025-12-05 03:17:25 UTC Comment hidden (obsolete)
Comment 13 Rainer Bielefeld Retired 2025-12-05 07:25:59 UTC
Created attachment 204445 [details]
Screencast showing problem

Still in 26.0.0 😥 –  Error: Reference source not found
Screencast is from LibO 25.2.7.2 with German UI