onlyoffice-nextcloud
onlyoffice-nextcloud copied to clipboard
Server lost changes if users open same document in different locations
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.
- Lets assume we have directory on server (NOT in nextcloud), located in
/opt/somewhere
, which is contains another directory inside (call itnestedfolder
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
foruserA
, but only/opt/somewhere/nestedfolder
foruserB
. - In nextcloud: Settings -> External Storages. Create local storage, name it
dir1
for example, with/opt/somewhere
path. - Create another external storage with
/opt/somewhere/nestedfolder
, name it asdir2
. - Share storage
dir1
foruserA
, anddir2
foruserB
. - In nextcloud,
userA
create or open existing document in/dir1/nestedfolder
in onlyoffice. -
userB
seeing that document too in hisdir2
and opens it too. -
userA
anduserB
starts making changes in document. None of them will be showed on another side.
Picture for reference:
External storages configuration:
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
In nextcloud Settings -> External Storages create local storage
Since this problem is related to nextcloud - I've moving this to separate repo
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
.
Nextcloud 21.0.1, DocumentServer 6.2.2.21, issue still present.