Bug 97410 - Comments randomly lost on saving
Summary: Comments randomly lost on saving
Status: RESOLVED DUPLICATE of bug 68604
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2016-01-28 12:20 UTC by teo8976
Modified: 2016-02-04 08:55 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

screenshot after opening previously saved document (31.85 KB, image/png)
2016-01-28 12:20 UTC, teo8976

Note You need to log in before you can comment on or make changes to this bug.
Description teo8976 2016-01-28 12:20:47 UTC
Created attachment 122255 [details]
screenshot after opening previously saved document

I edited a docx document, did some changes and added some comments, then saved it.

When I opened the document again the next day, I found out the content of the last comment I had added was gone. The comment is there but it's empty.

Now, you'll probably say that I thought I saved the document but didn't.
Let's even suppose that is the case (which is definitely not): when I closed Writer, I certainly didn't get the warning that  there were unsaved changes. So, either (a) the comment was not saved, or (b) I didn't get a warning about unsaved changes when closing Writer: either way there's a huge critical bug that causes data loss, rendering Writer unreliable to the point that it's not safe to use.

Anyway, believe me it's (a).
Comment 1 Buovjaga 2016-01-28 18:32:56 UTC
Could you verify the problem still happens with 5.1?
Comment 2 teo8976 2016-01-29 14:24:33 UTC
Could you verify it yourself? I'd rather not mess around with versions not installed through official Ubuntu updates.

What I can tell you is that on I can SYSTEMATICALLY reproduce it in the following way:
1 - open the document (it's a docx)
2 - add a comment
3 - add another comment: write the comment text without ever clicking outside the comment box or loosing focus to the comment box
4 - save the document while the comment box still has focus
5 - close Writer

Result: the last comment is saved empty, and no warning is given when closing Writer.

Note that if you click outside the comment box after step 3 and before step 4, the comment will be saved as expected.
Also (and this is kind of "consistent" in its wrongness), if you click outside the comment box after step 4 (saving) and before step 4 (quitting), you do get the save document prompt as expected, and the saving button becomes enabled when the comment box looses focus.

Basically, the issue seems to be that until the comment box looses focus, everything that has been typed into it is somehow not "committed" and not considered as some existing changes to the document. It's like what you have typed does not exist (though it's visible).
Comment 3 Buovjaga 2016-01-29 14:47:20 UTC
(In reply to teo8976 from comment #2)
> Could you verify it yourself? I'd rather not mess around with versions not
> installed through official Ubuntu updates.

I could and I will, if you confirm it, but I'd rather delegate it first to you as I do so much testing.

The parallel install will not mess anything up.
Comment 4 Timur 2016-02-04 08:55:15 UTC
I guess you saved using "save" toolbar button or "save" menu item. A duplicate then. If not, please reopen and mark as different.

*** This bug has been marked as a duplicate of bug 68604 ***