cs3org / wopiserver

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

Limit conflict files to one per hour #45

Closed glpatcern closed 3 years ago

glpatcern commented 3 years ago

This mini PR changes the filename pattern used to generate conflict files, in the case when a file is requested to be overwritten (via WOPI PutFile) but it had changed in the storage via other requests (e.g. sync client).

The motivation is to limit the proliferation of such conflict files: the user may not immediately realize a conflict was generated (often because the save operations happen asynchronously) and keeps using the application, therefore ending up with several conflict files where only the last one is relevant.

The new pattern uses just the hour as opposed to hour-minute-second.