Hi Tora,

I think I see the problem. Probably you have exactly the case when file system locking does not work. And the current implementation checks whether the file was changed only if system file locking is not used by the document. That is of course a bug, actually the OOo locking mechanics was introduced to workaround the known problems with the system file locking, so the check should be active always. I have just submitted a new issue to myself
http://qa.openoffice.org/issues/show_bug.cgi?id=102701
Thank you for finding the problem.

By the way, "SAL_ENABLE_FILE_LOCKING" does only affect sal implementation. So if it is not set the framework and office implementation still believes that the system file locking is used, at least the implementation requests sal to use it ( actually this variable looks to be a hack for me ). To let the framework not use the system file locking, there is a configuration entry "/org.openoffice.office.Common/Misc/UseDocumentSystemFileLocking", that let framework request no system file locking from sal for documents.

Best regards,
Mikhail.

On 06/18/09 11:55, tora - Takamichi Akiyama wrote:
The step 4 can not overwrite the file because the system file locking is active. If it was turned off, it would overwrite the document and the step 6 should show the warning.

I am not sure about the reasons.
The file (a) is /home/tora/z.odt .
The directory /home/tora is NFS auto-mounted.
I can do the step 4 without error. I have confirmed again and again.
It seems that the file is not locked by the OS or NFS.

I have not touched the Shell script /opt/openoffice.org3/program/soffice .
It has the lines below:
===
# file locking now enabled by default
SAL_ENABLE_FILE_LOCKING=1
export SAL_ENABLE_FILE_LOCKING
===

Anyway, I would be browsing the CWSs.

Regards,
Tora


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.org
For additional commands, e-mail: dev-h...@openoffice.org

Reply via email to