Bug 121737 - DATALOSS: Saving a new document can silently overwrite an existing document
Summary: DATALOSS: Saving a new document can silently overwrite an existing document
Status: RESOLVED DUPLICATE of bug 119790
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
(earliest affected) release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL: https://bugzilla.opensuse.org/show_bu...
Depends on:
Blocks: GTK3
  Show dependency treegraph
Reported: 2018-11-27 13:31 UTC by Jean DELVARE
Modified: 2018-11-27 15:12 UTC (History)
0 users

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Jean DELVARE 2018-11-27 13:31:50 UTC
This is a copy of a bug I reported on openSUSE's bugzilla. OS is openSUSE Leap 42.3.

$ rpm -q libreoffice-calc

I have just lost 2 documents because of this bug. First time I had a doubt that maybe I made a mistake. Now I am sure this is a bug and not a user mistake.

How to reproduce:

$ mkdir ~/Documents/bug
$ cd ~/Documents/bug
$ touch data.ods
$ echo foo > crap.csv

Now start Libreoffice Calc, type "bar" in the cell A1 and save the new spreadsheet. Navigate to ~/Documents/bug and select "data.ods" in the list (this is the key step to trigger the bug!) Then edit the input field at the top to replace ".ods" with ".csv". The input field now reads "data.csv". Press Enter and, if asked, confirm that you want to save in CSV format. You are prompted for formatting details of the CSV file, click OK.

Now look at the name of your document in the top bar. It is NOT "data.csv" as you asked. It is "crap.csv". You can check that file "crap.csv" now contains "bar":

$ cat crap.csv

The original contents of the document is forever lost. Libreoffice did not even ask for confirmation before overwriting the existing document.

The bug is not specific to Calc, the same bug can be reproduced with Writer, using appropriate filename extensions.

Further investigation revealed that this bug only happens with the gtk3 UI. When using the gtk, kde or generic UI, the bug does not happen.

The bug was also reproduced with versions and on the same system, downloaded from build.opensuse.org, as well as with version on openSUSE Tumbleweed (32-bit x86).
Comment 1 Caolán McNamara 2018-11-27 14:23:47 UTC

*** This bug has been marked as a duplicate of bug 119790 ***
Comment 2 Jean DELVARE 2018-11-27 15:12:35 UTC
Thank you very much Caolán. I looked for duplicates before creating this bug, but unfortunately did not find that one, sorry.