Issue 95133 - Lock-file lost when opening a file with linked data
Summary: Lock-file lost when opening a file with linked data
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: editing (show other issues)
Version: OOo 3.0
Hardware: All All
: P2 Trivial (vote)
Target Milestone: ---
Assignee: thorsten.martens
QA Contact: issues@sc
URL:
Keywords: oooqa, release_blocker
Depends on:
Blocks: 93339
  Show dependency tree
 
Reported: 2008-10-18 20:04 UTC by Stefan Weigel
Modified: 2013-08-07 15:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Stefan Weigel 2008-10-18 20:04:47 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.
Comment 1 andreschnabel 2008-10-18 20:25:33 UTC
confirmed on Windows XP and Linux (debian) using OOo 3.0.0 final

Comment 2 oc 2008-10-20 09:34:45 UTC
Hi Mav, please have a look
Comment 3 Mechtilde 2008-10-20 10:18:28 UTC
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
Comment 4 mikhail.voytenko 2008-10-28 11:06:57 UTC
The problem is that in case a document opened multiple times, the locking is not
refcounted.
Comment 5 mikhail.voytenko 2008-10-30 18:19:21 UTC
Should be fixed now.
Comment 6 mikhail.voytenko 2008-11-03 13:26:23 UTC
mav->tm: Please verify the issue.
Comment 7 thorsten.martens 2008-11-06 11:43:54 UTC
checked and verified in cws  buildid301 -> OK !
Comment 8 thorsten.martens 2008-12-04 12:19:29 UTC
closed