cs3org / wopiserver

A vendor-neutral application gateway compatible with the WOPI specifications.
Apache License 2.0
52 stars 27 forks source link

Interop locking enhancements for OnlyOffice #19

Closed glpatcern closed 4 years ago

glpatcern commented 4 years ago

As agreed with @diocas, with this PR we return the lock initial creation timestamp on /wopi/cbox/lock (both on POST and on GET).

This is to meet the OnlyOffice requirement that "Every time the document is edited and saved, the key must be generated anew", but the document's key must persist any intermediate save operation. Therefore, the key's lifetime exactly matches the interop/wopi lock lifetime.