Hi Olivier,
________________________________
От: Olivier Tilloy <olivier.tilloy@canonical.com>
Отправлено: 14 июля 2018 г. 2:47
Кому: mikekaganski@hotmail.com
Копия: libreoffice@lists.freedesktop.org
Тема: Re: leading dot and trailing # in lock files
Thanks Mike for the insights,
My approach of changing the lock filename pattern was indeed naive and
would invalidate the benefits of a cross-applications, cross-versions
lock mechanism.
There's little point in implementing an alternative pattern in cases
where the regular lock file cannot be written, if this isn't
propagated to other office programs and backported to all supported
versions.
Well - I don't agree. Actually, failing to do that would (1) disable our own current and future
versions from taking advantages that lock files give: alternative locking where FS locking is
unreliable/absent, and information about the party that had opened the document; and (2) disable
other suites from catching up. There are cases where lock files aren't needed actually: e.g.,
WebDAV, where locking is handled by server in a different way. But for cases where such server-side
locking and information is unavailable, I'd suggest still use alternative lockfile naming.
Would it be possible instead to write the document itself
and warn the user that no lock file could be written? Or does the
absence of a lock file mean that the file can only be opened
read-only?
We could do this, but see above. Inability to write standard lockfile (when one is absent), while
possibility to write lockfile with alternative name is a sure sign that we don't get caught to a
situation when we will conflict with other suites, so we are good with the alternative naming. Why
not doing that?
--
Best regards,
Mike Kaganski.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.