Apache OpenOffice (AOO) Bugzilla – Issue 95133
Lock-file lost when opening a file with linked data
Last modified: 2013-08-07 15:14:27 UTC
Try this: (1) In Calc create and save file 1.ods and file 2.ods (2) In 1.ods create a "link to external data" that refers to some data in 2.ods. (3) Close and save all (4) Open 2.ods (5) Note the presence of file .~lock.2.ods# in the same directory (6) Open 1.ods (7) First, do not answer to the question about updating the data. Note the presence of file .~lock.1.ods# in the same directory. (8) Now answer 'Yes' to the question about updating the data. (9) The file .~lock.2.ods# is gone. File 2.ods is no longer locked, although it is open for editing.
confirmed on Windows XP and Linux (debian) using OOo 3.0.0 final
Hi Mav, please have a look
I can also reproduce it I try it with a file which refers to several other *.ods files. During the data update all refered files are opened, a lock file is written, file closed, lock file deleted There is no mechanism to look if one or more of the refered files are open or not This can follow in data lost
The problem is that in case a document opened multiple times, the locking is not refcounted.
Should be fixed now.
mav->tm: Please verify the issue.
checked and verified in cws buildid301 -> OK !
closed