onlyoffice-nextcloud icon indicating copy to clipboard operation
onlyoffice-nextcloud copied to clipboard

Server lost changes if users open same document in different locations

Open tsunamaru opened this issue 3 years ago • 3 comments

Do you want to request a feature or report a bug? BUG

What is the current behavior? Changes made by user(s) lost.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Lets assume we have directory on server (NOT in nextcloud), located in /opt/somewhere, which is contains another directory inside (call it nestedfolder for this example. Absolute path would looks like /opt/somewhere/nestedfolder). And we have 2 users: userA, userB. For (whatever reason) I want to fully share /opt/somewhere for userA, but only /opt/somewhere/nestedfolder for userB.
  2. In nextcloud: Settings -> External Storages. Create local storage, name it dir1 for example, with /opt/somewhere path.
  3. Create another external storage with /opt/somewhere/nestedfolder, name it as dir2.
  4. Share storage dir1 for userA, and dir2 for userB.
  5. In nextcloud, userA create or open existing document in /dir1/nestedfolder in onlyoffice.
  6. userB seeing that document too in his dir2 and opens it too.
  7. userA and userB starts making changes in document. None of them will be showed on another side.

Picture for reference: image

External storages configuration: image

What is the expected behavior? Changes saved.

Did this work in previous versions of DocumentServer? Unknown.

DocumentServer version: 6.2.1.24 Nextcloud version: 21.0.0 Operating System: Linux Browser version: Not applicable

tsunamaru avatar Mar 31 '21 14:03 tsunamaru

In nextcloud Settings -> External Storages create local storage

Since this problem is related to nextcloud - I've moving this to separate repo

ShockwaveNN avatar Mar 31 '21 14:03 ShockwaveNN

Please note: I updated initial message, previous version be completely incorrect. If users editing document in different named external storages, which points to the same location on server -- bug doesn't reproduce.

E.g. dir1 and dir2 both points to /opt/somewhere.

tsunamaru avatar Mar 31 '21 15:03 tsunamaru

Nextcloud 21.0.1, DocumentServer 6.2.2.21, issue still present.

tsunamaru avatar Apr 27 '21 11:04 tsunamaru