https://bugs.documentfoundation.org/show_bug.cgi?id=91179

            Bug ID: 91179
           Summary: cale files in "Share document" mode are "locked" if
                    open over network (ssh/webdav)
           Product: LibreOffice
           Version: 5.0.0.0.alpha0+ Master
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: zhangwe...@realss.com

Reproduce:

1. Make an empty Openoffice Calc document, enable Share Document (Tools ->
Share Document), save it as .ods. Close LibreOffice.

2. Open the file to make sure it is still in Shared Document mode. Close
Libreoffice.

3. Copy the file to a network server (in my case, WebDAV);

4. Open LibreOffice, File -> Open, on the upper right corner, choose "Servers",
access the WebDAV server, and open that file.

5. The files open in Read Only mode.

Expected:

5. The files open, and still in "Shared Document" mode, just like step 2.

Notes:

----------
I tested it on latest LibreOfficeDev_5.0.0.0.alpha1_Linux_x86-64 and I
re-tested it on LibreOffice 4.2.7, the version shipped with Ubuntu 14.04, same
result.

On LibreOffice 4.2.7 I also tested accessing it through SSH, lest WebDAV is
broken. This time, I got a dialog when opening the file over SSH in the last
step. It stated the reason of read-only being 'file locked':

    Document file 'insurance%20investment.ods' is locked
    for editing by:

    Unknown User

    Open document read-only or open a copy of the document for editing.

I made sure in all my testing, the network directory (be it WebDAV or SSH)
allows writing, so that ".~sharing.xxx.ods#" file can be created. The way I
test it is to save a random file into the network directory through "File ->
Save as".

More information about how Share Document mode and ".~sharing.xxx.ods#" file
are expected to function can be found here:
http://doc.opensuse.org/documentation/html/openSUSE_113/opensuse-apps/cha.oo.calc.html

Quote:

    It is now possible to share a spreadsheet with other users. To do 
    so, click Tools+Share Document. In the dialog that appears, activate 
    the sharing mode and save the document. This creates a lock file 
    .~sharing.filename.ods# in the same directory to store the list of 
    users who are currently accessing the document. When a different 
    user, tux opens the file, he is informed about the sharing mode and 
    can make his changes to the file. When he wants to save his changes 
    (and the document has been modified by another user in the 
    meantime), a message appears. Upon saving the document, the changes 
    of both users will be merged.

    Access Permissions
    Note that all writers working on the shared document need writing 
    permission for both the shared file and the lock file.


Notice the use case: if a user wants to work on a document in Share Document
mode, of course he intends to save it over the network. If Share Document only
works when files are saved "locally", then it is limited to LAN, where with
NFS/CIFS the user can map files to local directories. This is an extremely
limited case. Most users wants to share across the Internet. Hence, this bug
defeats the Share Document feature.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to