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: 3.3.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-24 16:45 UTC by G.King
Modified: 2014-01-20 08:57 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Demo of undesired deletion of bookmarks (9.58 KB, application/vnd.oasis.opendocument.text)
2011-12-24 16:45 UTC, G.King
Details

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
Restricted my LibreOffice hacking area


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.