Bug 103059 - Alphabetical index wont save correctly
Summary: Alphabetical index wont save correctly
Status: RESOLVED DUPLICATE of bug 100182
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:5.2.2
Keywords:
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2016-10-08 16:33 UTC by r@fael.lv
Modified: 2016-11-22 01:23 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Dummy text with an alphabetical ToC (23.83 KB, application/3dr)
2016-10-20 09:14 UTC, Heiko Tietze
Details
On page 137 there's Alphabetical Index. If you update it, it goes away. (5.29 MB, application/vnd.oasis.opendocument.text)
2016-11-17 19:27 UTC, r@fael.lv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description r@fael.lv 2016-10-08 16:33:08 UTC
Description:
Using LibreOffice Writer 5.2.1.2 (x64) on Windows 10 x64, table of contents won't "stick" after save and close. 

Because I am using Writer in portuguese I'm not quite sure the name of thing is actually "table of contents". I'm talking about the alphabetic ordered summary.

I tried several documents.

Until I figured this out, I was editing files away with great abandon, but now, thanks to this, several of my previous documents with months old tables of contents are now useless.

Steps to Reproduce:
1. Create a table of contents
2. Highlight some text, add it as an entry to the table of contents. That text becomes highlighted grey. 
3. Update table of contents, the entries display normally. 
4. Save, close.
5. Re-open document. Table of contents is untouched, but entries in text are no longer highlighted gray. 
6. Update table of contents, all entries disappear.

Actual Results:  
Table of contents empty irreversibly, useless.

Expected Results:
Table of contents full of cool entries I created.


Reproducible: Always

User Profile Reset: No

Additional Info:
One strange behavior: upon trying to format table of content, application would return an error "idxexample.odt is in use", with three options: Open read-only, Open or Cancel. If I Open or Cancel, the dialog opens "empty", just the header with the close button and below it, a semi-transparent window with nothing on it. If I open read-only, dialog works normally. I found idxexample.odt, changed permissions to allow everyone and his brother to do whatever with the file. After this, this error went away, but it didn't solve the issue with the tables of contents disappearing.


User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0
Comment 1 Yousuf Philips (jay) (retired) 2016-10-17 04:50:22 UTC
Hello,

Unfortunately i couldnt fully get what you meant by your steps, so i'd suggest you attach a sample document and provide a new set of steps to reproduce, or alternatively do a screencast with Camstudio or screencast-o-matic.com.

If you arent familiar how table of contents works, please watch this video - https://www.youtube.com/watch?v=ZjgQR2Bymkc
Comment 2 r@fael.lv 2016-10-19 20:38:18 UTC
(In reply to Yousuf Philips (jay) from comment #1)
> Hello,
> 
> Unfortunately i couldnt fully get what you meant by your steps, so i'd
> suggest you attach a sample document and provide a new set of steps to
> reproduce, or alternatively do a screencast with Camstudio or
> screencast-o-matic.com.
> 
> If you arent familiar how table of contents works, please watch this video -
> https://www.youtube.com/watch?v=ZjgQR2Bymkc

Hello.

I'm sorry. From your video, I can now definitely tell I was actually referring to Alphabetical Index, not Table of Contents. As stated before, my app is in portuguese, thus I confused the name of the tool I was using. Someone might need to update the title of this bug.

I see there's a similar video about Alphabetical Index from the same author here: https://youtu.be/mZbjtIamDlU . That's what I was using.

Unfortunately I don't have that version of LibreOffice anymore as I reverted to 5.1.5.2 which doesn't present this error, but now I got the right tool name, let me re-phrase the steps to reproduce and other info, below.

Steps to Reproduce:
1. Create an Alphabetical Index.
2. Highlight some text, add it as an entry to the Alphabetical Index. That text becomes highlighted grey. 
3. Update Alphabetical Index, the entries display normally. 
4. Save, close.
5. Re-open document. Alphabetical Index is untouched, but entries in text are no longer highlighted gray. 
6. Update Alphabetical Index, all entries disappear.

Actual Results:  
Alphabetical Index empty irreversibly, useless.

Expected Results:
Alphabetical Index full of cool entries I created.

Additional Info:
Important clarification: I had wrongly stated before this bug applies to Tables of Contents instead of Alphabetical Indexes. I was confused by the language of the app. This bug applies to Alphabetical Indexes and NOT Tables of Contents. Tables of Contents work fine on my end!
One strange behavior: upon trying to format Alphabetical Index by right clicking it and selecting "Edit Index/Table", application would return an error "idxexample.odt is in use", with three options: Open read-only, Open or Cancel. If I Open or Cancel, the dialog opens "empty", just the header with the close button and below it, a semi-transparent window with nothing on it. If I open read-only, dialog works normally. I found idxexample.odt, changed permissions to allow everyone and his brother to do whatever with the file. After this, this error went away, but it didn't solve the issue with the entries of Alphabetical Indexes disappearing.
Comment 3 Yousuf Philips (jay) (retired) 2016-10-19 22:59:18 UTC
Hi,

Thanks for the clarification. I've update the bug title to reflect your findings and will pass the issue onto my colleagues who are familiar with this feature. 

@Heiko, @Stuart, @Cor: Can you guys handle this. thanks.
Comment 4 Heiko Tietze 2016-10-20 09:14:59 UTC
Created attachment 128091 [details]
Dummy text with an alphabetical ToC

So lets discuss the issue on basis of an example. It contains dummy text; I made some words entries for the ToC and placed the alphabetical ToC at the end. 

When I understand you right you want to highlight parts of the ToC (did that for "and" after unchecking protection flag) and expect persistence. That works here for save/load. But when you update the index it will be rebuild completely meaning the yellow highlighting is cleared anyway. The auto update of fields is optional, see Tools > Options > Writer > General. But I'm not sure if that's the final solution for you.

Tested with
Version: 5.2.2.2.0+
Build ID: 5.2.2-2
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; 
Locale: en-US (en_US.UTF-8); Calc: group
Comment 5 r@fael.lv 2016-10-20 15:24:32 UTC
> When I understand you right you want to highlight parts of the ToC (did that
> for "and" after unchecking protection flag) and expect persistence. That
> works here for save/load. But when you update the index it will be rebuild
> completely meaning the yellow highlighting is cleared anyway. The auto
> update of fields is optional, see Tools > Options > Writer > General. But
> I'm not sure if that's the final solution for you.


Hello,

Trying to clarify, I don't mean to highlight parts of the Alphabetical Index so they have a different background color. When I said highlight, I meant just when you mark the text with the mouse, in order to add them to the Alphabetical Index.

In order to add entries to the Alphabetical Index, you have to mark text with the mouse, then choose the option to add entry on the menu. Text marked like that stays highlighted gray so you know it's part of the Alphabetical Index. Then you update the Index, the entries appear there. On my experience, after save-close-reopen, the text that was marked grey is no longer (on the body of the document, not on the index), the index is complete until I update it, when it notices there's nothing marked as entries, so it reverts to empty.

In short, creating an index and adding entries works, then save-close-reopen, update index and all entries are gone.

Also note I used version 5.2.1.2 x64.
Comment 6 Heiko Tietze 2016-10-20 22:46:55 UTC
(In reply to r@fael.lv from comment #5)
> In short, creating an index and adding entries works, then
> save-close-reopen, update index and all entries are gone.

What happens when you load my document and update the index?
Comment 7 Bradley Allen 2016-11-01 20:34:37 UTC
I had the same problem until I move to using a Concordance-File.sdi file.
Comment 8 Buovjaga 2016-11-16 12:10:55 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to r@fael.lv from comment #5)
> > In short, creating an index and adding entries works, then
> > save-close-reopen, update index and all entries are gone.
> 
> What happens when you load my document and update the index?

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the information.
Comment 9 r@fael.lv 2016-11-17 19:27:06 UTC
(In reply to Heiko Tietze from comment #6)
> (In reply to r@fael.lv from comment #5)
> > In short, creating an index and adding entries works, then
> > save-close-reopen, update index and all entries are gone.
> 
> What happens when you load my document and update the index?

As stated, unfortunately I don't have version 5.2.1.2 of the program anymore, because I need Writer for production. On my current bugless version, the problem doesn't happen, and your file displays correctly.

I can provide a file saved on 5.2.1.2 where there was an Alphabetical Index and all entries were lost upon close-reopen. Here.
Comment 10 r@fael.lv 2016-11-17 19:27:58 UTC
Created attachment 128826 [details]
On page 137 there's Alphabetical Index. If you update it, it goes away.
Comment 11 r@fael.lv 2016-11-17 19:36:14 UTC
Comment on attachment 128826 [details]
On page 137 there's Alphabetical Index. If you update it, it goes away.

Additional context: this document was saved with LibreOffice 5.2.1.2 Windows x64. I had been working on it for, well, over a year, on previous versions of LibreOficce (5.1.3.2 for example). When I updated to 5.2.1.2, upon saving this and any of my documents, closing and reopening, Alphabetical Indexes are lost. The problem on this file can be verified using other versions of LibreOffice (I'm using 5.1.3.2 now). Just open the document and try to update the Alphabetical Index, all entries disappear. Thus I'm thinking the problem is in saving the file on 5.2.1.2, because the Index itself was created with an earlier version of the program, then saved several times, no problem, then after saved once on 5.2.1.2, when reopened on any version of LibreOffice I tried, Index is gone.
Comment 12 Buovjaga 2016-11-17 19:37:51 UTC
(In reply to r@fael.lv from comment #9)
> As stated, unfortunately I don't have version 5.2.1.2 of the program
> anymore, because I need Writer for production. On my current bugless
> version, the problem doesn't happen, and your file displays correctly.

You can install versions in parallel with this tool: https://wiki.documentfoundation.org/SI-GUI
http://tdf.io/siguiexe

Btw. this bug about disappearing index entries is fixed in 5.2.2: bug 100182
Comment 13 V Stuart Foote 2016-11-17 20:10:33 UTC
(In reply to r@fael.lv from comment #11)
>... thinking the problem is in saving the file on 5.2.1.2, 

Yes correct, as in bug 100182 it was broken during 5.2 development (2015-11-25) and a dataloss regression affecting the 5.2.0 -> 5.2.1 releases.

Patched by https://cgit.freedesktop.org/libreoffice/core/commit/?id=92b384b197b8f6c85127e277b10e09936d0c6021&h=libreoffice-5-2 and is correct now with 5.2.2+ release, as well for dev builds of master/5.3.0 after 2016-09-01.

You should be fine if you install current 5.2.3.3 release
http://downloadarchive.documentfoundation.org/libreoffice/old/5.2.3.3/win/

*** This bug has been marked as a duplicate of bug 100182 ***
Comment 14 helmut 2016-11-18 07:54:08 UTC
Dear Community,

I need Writer-Version 5.2.3.3 and 5.3.0.0.1 now.
There the problem is fixed.

Best regards, Helmut Wolff!
Comment 15 Buovjaga 2016-11-18 08:48:23 UTC

*** This bug has been marked as a duplicate of bug 100182 ***
Comment 16 r@fael.lv 2016-11-21 18:10:00 UTC
I wonder though, if such a game-breaking bug was known for months before I downloaded 5.2.1.2, why is it still available for download on official channels? That version should carefully be avoided by all, lest it stains even further the credibility of the platform as a whole.
Comment 17 Buovjaga 2016-11-21 18:40:13 UTC
(In reply to r@fael.lv from comment #16)
> I wonder though, if such a game-breaking bug was known for months before I
> downloaded 5.2.1.2, why is it still available for download on official
> channels? That version should carefully be avoided by all, lest it stains
> even further the credibility of the platform as a whole.

Every single version is available for download in https://downloadarchive.documentfoundation.org/libreoffice/old/ and I don't understand why that should change.
Comment 18 V Stuart Foote 2016-11-21 18:49:46 UTC
(In reply to r@fael.lv from comment #16)
> I wonder though, if such a game-breaking bug was known for months before I
> downloaded 5.2.1.2, why is it still available for download on official
> channels? That version should carefully be avoided by all, lest it stains
> even further the credibility of the platform as a whole.

5.2.1 release (5.2.1.2 build) was rolled 2016-08-25. It has been out of the mirror distribution network since 2016-09-26 with release of 5.2.2 (5.2.2.2 build). Not sure where or how often you check the project for updates.

Bug-fix releases on the Still and the Fresh branches occur once a month.

The current 5.2 branch build is 5.2.3 (5.2.3.3 build) which rolled 2016-10-31

Master development builds (what will be the next 5.3.0 release) are built and posted nightly.
Comment 19 r@fael.lv 2016-11-22 01:14:01 UTC
(In reply to Buovjaga from comment #17)
> (In reply to r@fael.lv from comment #16)
> > I wonder though, if such a game-breaking bug was known for months before I
> > downloaded 5.2.1.2, why is it still available for download on official
> > channels? That version should carefully be avoided by all, lest it stains
> > even further the credibility of the platform as a whole.
> 
> Every single version is available for download in
> https://downloadarchive.documentfoundation.org/libreoffice/old/ and I don't
> understand why that should change.

I never touched that path to download LibreOffice, I'm talking about channels widely available for the general public, non-devs like me.
Comment 20 r@fael.lv 2016-11-22 01:23:38 UTC
(In reply to V Stuart Foote from comment #18)
> (In reply to r@fael.lv from comment #16)
> > I wonder though, if such a game-breaking bug was known for months before I
> > downloaded 5.2.1.2, why is it still available for download on official
> > channels? That version should carefully be avoided by all, lest it stains
> > even further the credibility of the platform as a whole.
> 
> 5.2.1 release (5.2.1.2 build) was rolled 2016-08-25. It has been out of the
> mirror distribution network since 2016-09-26 with release of 5.2.2 (5.2.2.2
> build). Not sure where or how often you check the project for updates.
> 
> Bug-fix releases on the Still and the Fresh branches occur once a month.
> 
> The current 5.2 branch build is 5.2.3 (5.2.3.3 build) which rolled 2016-10-31
> 
> Master development builds (what will be the next 5.3.0 release) are built
> and posted nightly.

Right now, here's what you'll find on pt-br.libreoffice.org (where I downloaded 5.2.1.2, translation mine): 

> Available versions
> LibreOffice is available in the following versions:
>     5.1.6
>     5.2.2
>     5.2.3
> LibreOffice is available in the following pre-release versions:
>     5.3.0

So, three production versions. Whatever of those three I choose are called "Estável" (Stable). I downloaded it by early october, so, after 2016-09-26 it was somehow available on the official site as one of the stable releases, at least on the pt-br site. Perhaps this is a mistake on the pt-br devs (not being aware of a seriously buggy version), perhaps you do make a point of releasing any version according to schedule no matter how buggy, since all versions are known to have bugs to an extent. 

What I'm saying is, either of those scenarios should be avoided, in my humble opinion. That particular version was very dangerous for production use.