Jakob Lechner wrote: > Hello, > > We're using OOo for one of our products (Fabasoft Folio). > Folio is a document management system where documents of different types > can be stored. When editing a document, the document is copied to a > temporary directory and the appropriate application is started. If the > document is closed, the file is transfered back from the temporary > directory to the document store. In order to find out whether a document > is still in use, our application checks the file lock. > > If an Excel file opened with OOo is saved, the file lock seems to be > removed during the save/conversion operation (this can take a long time > – depending on the file size). After the file has been saved the lock is > re-established. Unfortunately the intermediate removal of the file lock > can trigger our application too soon. > > Does anybody know why the file lock is released during the saving > procedure? Is this a bug or intended (necessary) behaviour? > > Any ideas how we can overcome/workaround this problem? > > I've been told that OOo 3.0 creates special lock-files for opened > documents. Unfortunately this doesn't seem to be done for MS Office > documents. Why?
Mikhail has answered your questions, let me add that most probably we will add an option in OOo3.1 to get system file locking back (in addition to our lock files). We removed the sytem file locking in OOo3.0 because too many users had problems with it in heterogeneous networks. It seems that now too many users have problems without it also. ;-) In general I don't think that making workflows react on the particular, undocumented behavior of OOo is a good idea. My recommendation would be to create an OOo extension that will explicitly call your application or set a *reliable* "flag" in the file system or somewhere else that your application can monitor (in case you want to avoid the direct call to your application). Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[EMAIL PROTECTED]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
