Bug 65854 - Open read only fails when trying to open an already open document on a samba share
Summary: Open read only fails when trying to open an already open document on a samba ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Libreoffice (show other bugs)
Version: 4.0.3.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 10:44 UTC by grahha
Modified: 2014-03-10 06:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
error dialog box (12.83 KB, image/png)
2013-06-17 15:00 UTC, grahha
Details

Description grahha 2013-06-17 10:44:35 UTC
LibreOffice version: 4.0.3
OS: Ubuntu 12.04.2 / Windows 7 / Windows XP
File Share: Samba 3 on Ubuntu 11.04 server.
Hardware: x86 x86-64
Document types: writes, impress, calc 

What happens.
- UserA(window) opens document_1 on samba share. lock file gets created.
- UserB(ubuntu) tries to open document_1 on samba share.
- UserB gets prompted that file is already open and to choose, read only, open a copy, cancel.
- UserB selects read only:  gets presented with " general input/output error" dialog box.

What should happen
- UserA(windows) opens document_1 on samba share. lock file gets created.
- UserB(ubuntu) tries to open document_1 on samba share.
- UserB gets prompted that file is already open and to choose, read only, open a copy, cancel.
- UserB selects read only:  document opens in read only.
Comment 1 grahha 2013-06-17 15:00:50 UTC
Created attachment 80956 [details]
error dialog box

The error dialog box that appears when you try to open a document as read only on an already opened document
Comment 2 grahha 2013-06-20 09:33:12 UTC
This also prevents MS Office users from opening documents in read only if a LibreOffice user has the document already open.

MS Office 2007 on Windows 7 64bit
Comment 3 sweq1 2013-07-10 19:51:55 UTC
I have the same problem but with different configuration.

The file server :
Windows 2008 R2
Samba 2

LibreOffice 4.0.4
Document types: writes, impress, calc
MS Office 2003

Some scenarios :
Scenario 1 :
2 user with Ubuntu 12.04.2
user A open the LO file on the server, he's fine.
user B open the LO file on the server, a dialog box ask to open as read only or to copy the file, a second dialog box explain the file is corrupted.

Scenario 2 :
2 user with Ubuntu 12.04.2
user A open the MS file on the server, he's fine.
user B open the MS file on the server, a dialog box ask to open as read only or to copy the file, a second dialog box explain the file is corrupted.

Scenario 3 :
user A with Windows XP sp3
user B with Ubuntu 12.04.2
user A open the MS file on the server, he's fine.
user B open the MS file on the server, a dialog box ask to open as read only or to copy the file, a second dialog box explain the file is corrupted.

Scenario 4 :
user A with Ubuntu 12.04.2
user B with Windows XP sp3
user A open the MS file on the server, he's fine.
user B open the MS file on the server, the file is empty.
Comment 4 ign_christian 2013-07-11 04:54:59 UTC
I can also confirm behavior (general i/o error) on comment 0 with similar scenarios using simple sharing (no server) with Samba 3.5.14.

PC-A: Win XP with OOO 3.3.0
PC-B: PCLinuxOS KDE 32bit with LO 4.0.4.2
File to test: .doc

Scenarios:
- PC-B opens file in PC-A. PC-A will fails to open same file
- PC-A opens file in PC-A. PC-B will fails to open same file
- PC-B opens file in PC-B. PC-A will fails to open same file

But this scenario works:
PC-A opens file in PC-B. Then PC-B can opens same file as read only.

Note: That's not happen (file can be opened as read only) if 2 PCs using same OS (PCLinuxOS KDE 32bit) & same LO version (4.0.4.2).


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.