https://bugs.documentfoundation.org/show_bug.cgi?id=118826

            Bug ID: 118826
           Summary: FILEOPEN lock file does not protect against opening
                    via a symlink to the same file
           Product: LibreOffice
           Version: 5.4.7.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: nigel.ar...@silson.com

If a symlink in one folder refers to a file in another folder, then the
lockfile created when the file is opened does not protect against a second
instance of LibreOffice Calc opening the same file via the symlink.

This can lead to loss of data caused by one user updating a file and the
results being overwritten by another user saving his different updates. Or even
by the same user forgetting that he already has the file open. It's therefore a
major or even critical bug.

Affects both calc and writer so reported under LibreOffice.

To verify
-create (say) /home/user/Documents/t.odt
-in terminal, ln -s /home/user/Documents/t.odt /home/user/Desktop/
-navigate to Documents (I used nemo) and open t.odt by double-clicking
-doubleclick the link to t.odt on the desktop, and a second writer instance
appears with the same file open and no error message
-verify potential data loss by changing in one instance and saving, then
changing diffedrently in the second abd saving.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to