Try the fastest and simplest way to install ONLYOFFICE

Document.key and collaborative editing

Integration questions/issues

Document.key and collaborative editing

Postby thomaswollburg » Fri Nov 02, 2018 3:14 pm

Hi,

we are setting up a quit extensive integration with OnlyoOffice Document server and I have a question about Collaborative editing and document.key attributes.

According to https://api.onlyoffice.com/editors/troubleshooting the key should be generated anew each time a document is save. Looking at the implementations for the NextCloud app etc this is confirmed.

But how do you see a scenario working where UserA opens a document, edits it, saves it. Then UserB opens the same document - but he will get a new key... how does Document Server do the matching of the Document? In our case the URL to the document is different for each user (as it contains the username).

Does DocumentServer manage "old" keys for documents? After UserA save the document, is there a way to get the new and correct document key into the active editing session?
thomaswollburg
 
Posts: 4
Joined: Mon Sep 24, 2018 11:22 am

Re: Document.key and collaborative editing

Postby Alexander_mb » Sat Nov 10, 2018 8:00 am

Hello thomaswollburg,

Please follow this https://api.onlyoffice.com/editors/coedit to find information in API documentation about how co-editing works.

But how do you see a scenario working where UserA opens a document, edits it, saves it. Then UserB opens the same document - but he will get a new key...


UserB will see a blank file, because keys won't match.

After UserA save the document, is there a way to get the new and correct document key into the active editing session?


No, unfortunately, there is no possibility to do this.
Alexander_mb
 
Posts: 40
Joined: Tue Aug 08, 2017 2:01 pm


Return to API

Who is online

Users browsing this forum: No registered users and 2 guests