I have readonly shared folder (WinServer) with files: odt, ods, doc, xls. When I open files, I get a dialog box ("The document is already in use") with a choice: ----------- my translate to english ------------- Document file «test.odt» locked for editing: Unknown user Open the document in read-only mode or open the copy of the document to make changes.. ------------------------------------------------- If I copy this file to a local folder and set ReadOnly attribute, the file is opened in read-only mode directly. In OpenOffice commandline parameter "--nolockcheck" disable dialog box. How can I do this in LibO.
I suppose the dialog box appears because LO isn't able to create the lock-file for your document, as the folder is readonly. When you copy it to a local folder and set its read-only flag, the document itself (not the directory) is readonly. The nolockcheck-parameter is described as "--nolockcheck don't check for remote instances using the installation", so it's not about checking the lock of a document, but the lock of the LO installation. The different behaviour of OOo and Lo is a result of bug 71005.
Confirm it. I created local folder. Copied into folder document. Made folder as "read-only" by NTFS. Document opens as read-only with dialog box. The interesting behavior (1). a)If I set read-only flag for file. Then "read-only" by NTFS for local folder. Now document opens as read-only WITHOUT dialog box. b)I unset read-only flag for file ("read-only" folder). Now document opens as read-only WITH dialog box. May be solution for me is option (a)? NO. I can not set read-only flag for all files in network shared folder. Because folder is "read-only" for most users, but some users have full access for this folder. But for some it will be a solution, not for me. The interesting behavior (2). Local folder with fullaccess permissions. a)I set read-only flag for file. The document opens as "read-only" WITHOUT dialog box. b)I unset read-only flag for file. Take off NTFS permission "write" for file. Now document opens as "read-only" WITH dialog box. Folder has fullaccess permissions (nothing not interfere to create the lock-file). Please, I ask option in "Load/Save | General": Open as "read-only" from read-only folder. Algorithm: if lock-file not exist and if there are no rights for create lock-file, open file as "read-only".
In current master, the problem is solved: When the lockfile cannot be created, the document (writable) is opened normally, and if two users access and change the document, the second one gets a warning message.
Can the original reporter please test with a recent master build (installs separately): http://dev-builds.libreoffice.org/daily/master/Win-x86@39/
http://dev-builds.libreoffice.org/daily/master/Win-x86@39/2014-12-12_01.58.46/master~2014-12-12_01.58.46_LibreOfficeDev_4.5.0.0.alpha0_Win_x86.msi Local folder as "read-only" by NTFS. Document opens as read-only with dialog box "Document in Use". Read-only shared folder (WinServer). Dialog box.
Thanks for the testing. Setting back to UNCONFIRMED as we need another confirmation.
LO 5.0.0.5 The problem is not solved.
LO 5.1.2.2 The problem is not solved.
I can reproduce that there is a dialog about the document being locked if it's loaded from a read-only Samba share. LO 5.1.2.2, Windows 7, and in 3.3 as well. Same in LO 5.1.2.2, Linux (for some reason in Linux 5.0.5.2 does not show dialog, lets you open the file in edit mode, but of course save fails). I didn't check behavior with locally set read-only files. Master build has a slightly different dialog: "Document file 'test.odt' is locked for editing by yourself on a different system since Open document read-only, or ignore own file locking and open the document for editing." Might be just because the Samba user name is the same as my local user. Version: 5.2.0.0.alpha1+ Build ID: 039b75d6cdc26dcce03e37c67115405e6f2a8ebe CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; Locale: hu-HU (hu_HU)
*** Bug 104652 has been marked as a duplicate of this bug. ***
Yes, pls do something about this. In my school we got plenty of documents on shared folders, mostly for students/teachers in read-only mode /most shares are read-only on samba/. When students open any documents, they got all the time annoying message, that the file is in use. Why is that? Could that be pls remove, or be able disabled in settings? The situation is quite similar as if you open email attachment, isnt it? Thank you very much.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
LO 5.4.3.2 The problem is not solved.
LO 6.0.1.1 The problem is not solved.
This bug in all versions of LibreOffice (3.3.0.4 - 6.6.3.2) OpenOffice 4.1.5 opens documents from read-only folders in read-only mode without a dialog box, see how it is done in it.
LO 6.3.0.2 The problem is not solved. OO 4.1.6 The problem is not present. OO 4.1.6 opens documents from read-only folders in read-only mode without a dialog box.
LO 6.4.0.2 The problem is not solved.
LO 7.0.0.3 The problem is not solved.
LO 7.4.0.1 The problem is not solved.
LO 7.5.0.1 The problem is not solved. The dialog box has been changed, but the problem is not solved.
LO 7.6.0.1 The problem is not solved. The dialog box has been changed and has become multilingual.