You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice to have true file locking in NC, such that opening a file prevents editing/opening by a second user until closed. I'm aware this has been discussed pretty heavily in the OC github, but I was hoping the opinion may be different in NC.
Our main use would be through webdav; however, it would probably be necessary to honor the lock in the web interface and possibly also the sync client.
This issue has been brought up (independently) time and time again by our customers, so it's a much sought after feature from our client base.
Steps to reproduce
User 1 opens FileA in WebDav
User 2 opens FileA in WebDav
User 1 edits FileA and saves (which updates through WebDav)
User 2 edits FileA and saves (which updates through WebDav)
Expected behaviour
User2 shouldn't be able to open and/or save their changes because User1 already had FileA open
Actual behaviour
The changes that User2 made overwrites the changes that User1 made. This is done without any notice/message/warning to User2 or User1. Neither are even aware that changes were overwritten.
Reacted by YANO Tetsuro, Michael Totschnig, Julien Palard, michag86, klm46, GRHM, blanszer, hieronymousch, carlu93, Sven Gebauer and 2 more
Quite frankly I think the idea got ditched because of the integration with Collabora Online... Although it seems a bit overkill to set up a Collabora Online environment just for this purpose... :)
Recently migrated from ownCloud 7 (file-locking worked fine) to a new server with ownCloud 9.1.4. File-locking doesn't work any longer but I decided to upgraded to Nextcloud with the Nextcloud installer to the latest version (12). Very easy to do but the file-locking still broken.
This is a must have "feature" like @klm46 posted on 10 April for businesses and a big deal breaker for continued use of Nextcloud for us.
@grayum not to my knowledge, but it also doesn't work for email attachments, USB sticks, Dropbox, WeTransfer, GDrive and all the other ways people move files around when we wish they wouldn't.
Locks via webdav (et al) also won't work if someone is editing a document offline - some things are best dealt with through policies and working practices. One client introducing NC has introduced policy of "sync only things you might work on near time or only want for reference" and then mandate users collaborating on files to visit the web interface to lock files with the aforementioned app before they start to edit them.
@putt1ck I think we're getting a bit off topic. In my case (and probably most of the participants here) the customer uses webdav exclusively (via a networkmap). So files are only available online.
Then if two people open the same file the first one gets no prompt and can r/w but the second gets a prompt that the file is only available for r/o. That's what ownCloud 7 did. That's the functionality my customers currently lack in NC 12.
The app you suggest involves users to use the webinterface of NC/OC and while this might work it's not very user friendly. And unrelated to the original post/request by @watermark. I do thank you for the suggestion though.
@jocarren my vote is that we get file locking through the desktop sync client (nextCloud preferably, not the ownCloud one). I don't use WebDAV myself, but since it seems you do, I can understand why you care for file locking for that.
I think we should get file locking regardless of the protocol used, but perhaps to start, have it enforced through the desktop sync client.
@jospoortvliet I literally have a client that is going with SeaFile instead of NC because of the file locking.
New insight from a friend of mine in Paris, system admin for several companies: they don't go Nextcloud only because of the lack of file locking (or similar feature).
Look, it isn't so complicated:
home users don't need this
we're not so excited about the needs of companies who don't want to pay us. Do you guys work for free for your boss or customer? Right.
@putt1ck I appreciate the work you do to keep W2G2 working! And all of you are, of course, welcome to contribute these features.
If any of these companies who is interested is a serious enterprise (eg 1K users or more), tell them to ask us, or, heck, become a partner, resell them a support contract. If we get a few asking for this, we can develop it.
I'll close this now for discussion, we're not adding much new info.
@jocarren the workaround in question assumes that the use case for Nextcloud is just an alternative to Dropbox or WeTransfer etc. i.e. a way for people to access files from home etc..
In this use case, continue to use SMB for old-school shared drives, and then make the SMB shares available as "external storage" using "Log-in credentials" or "User entered" for authentication. This requires SMB client to be installed on Linux NC hosts but is otherwise easy enough to maintain.
Activity
putt1ck commentedon Jan 19, 2017
also interested in some solution around this, but client would be happy for it to be a plugin/manual checkout method like https://apps.owncloud.com/content/show.php/Workin2gether+(Lock+files+in+WebUI)?content=164016
klm46 commentedon Apr 10, 2017
Kinamo commentedon May 3, 2017
Quite frankly I think the idea got ditched because of the integration with Collabora Online... Although it seems a bit overkill to set up a Collabora Online environment just for this purpose... :)
putt1ck commentedon May 3, 2017
Well, if installing Collabora Online means we get sync client file locks (and web client) we'd install it even if the client would never use it...
klm46 commentedon Jun 14, 2017
the problem is, that then the xls and co will beopen by libreoffice. this is no possibility for me. any news?
grayum commentedon Jun 15, 2017
Recently migrated from ownCloud 7 (file-locking worked fine) to a new server with ownCloud 9.1.4. File-locking doesn't work any longer but I decided to upgraded to Nextcloud with the Nextcloud installer to the latest version (12). Very easy to do but the file-locking still broken.
This is a must have "feature" like @klm46 posted on 10 April for businesses and a big deal breaker for continued use of Nextcloud for us.
putt1ck commentedon Jun 15, 2017
The Workin2gether app is now released for NC12: https://apps.nextcloud.com/apps/workin2gether - might be just what you need
grayum commentedon Jun 15, 2017
@putt1ck does that work for webdav though?
putt1ck commentedon Jun 15, 2017
@grayum not to my knowledge, but it also doesn't work for email attachments, USB sticks, Dropbox, WeTransfer, GDrive and all the other ways people move files around when we wish they wouldn't.
Locks via webdav (et al) also won't work if someone is editing a document offline - some things are best dealt with through policies and working practices. One client introducing NC has introduced policy of "sync only things you might work on near time or only want for reference" and then mandate users collaborating on files to visit the web interface to lock files with the aforementioned app before they start to edit them.
grayum commentedon Jun 16, 2017
@putt1ck I think we're getting a bit off topic. In my case (and probably most of the participants here) the customer uses webdav exclusively (via a networkmap). So files are only available online.
Then if two people open the same file the first one gets no prompt and can r/w but the second gets a prompt that the file is only available for r/o. That's what ownCloud 7 did. That's the functionality my customers currently lack in NC 12.
The app you suggest involves users to use the webinterface of NC/OC and while this might work it's not very user friendly. And unrelated to the original post/request by @watermark. I do thank you for the suggestion though.
klm46 commentedon Jul 4, 2017
marcinkaleta commentedon Jul 17, 2017
klm46 commentedon Jul 25, 2017
41 remaining items
biva commentedon May 4, 2018
@jocarren afaik, the workaround is this one: nextcloud/desktop#83 (comment)
And it works only for Libreoffice
BloodyIron commentedon May 4, 2018
@jocarren my vote is that we get file locking through the desktop sync client (nextCloud preferably, not the ownCloud one). I don't use WebDAV myself, but since it seems you do, I can understand why you care for file locking for that.
I think we should get file locking regardless of the protocol used, but perhaps to start, have it enforced through the desktop sync client.
jospoortvliet commentedon May 7, 2018
Look, it isn't so complicated:
@putt1ck I appreciate the work you do to keep W2G2 working! And all of you are, of course, welcome to contribute these features.
If any of these companies who is interested is a serious enterprise (eg 1K users or more), tell them to ask us, or, heck, become a partner, resell them a support contract. If we get a few asking for this, we can develop it.
I'll close this now for discussion, we're not adding much new info.
putt1ck commentedon May 7, 2018
@jocarren the workaround in question assumes that the use case for Nextcloud is just an alternative to Dropbox or WeTransfer etc. i.e. a way for people to access files from home etc..
In this use case, continue to use SMB for old-school shared drives, and then make the SMB shares available as "external storage" using "Log-in credentials" or "User entered" for authentication. This requires SMB client to be installed on Linux NC hosts but is otherwise easy enough to maintain.
MorrisJobke commentedon Jul 5, 2018
See also discussion in #9969
aignerat commentedon Aug 29, 2019
Hey,
I think an important first step would be to inform the user, that another user is editing the same file at the moment.
skjnldsv commentedon Mar 5, 2020
@rullzer @daita this is fixed with 18, right?
rullzer commentedon Mar 5, 2020
Well there is the locking app. So that covers the basics yes
putt1ck commentedon Mar 5, 2020
There's been a locking app for a while e.g. W2G2. Not sure that nor the new one covers the request to have webdav locks.
skjnldsv commentedon Mar 5, 2020
@putt1ck the new lock file app include proper webdav locking properties.
Webdav mount on debian reject stating the file is locked :)