nextcloud / end_to_end_encryption_rfc

🔒 Specification for end-to-end encryption used by Nextcloud sync & mobile apps
Other
31 stars 15 forks source link

"Atomic" upload of file and its metadata file #23

Open woefe opened 6 years ago

woefe commented 6 years ago

A change to a folder (adding new file, updating a file, removing a file) via WebDAV and the corresponding change to the metadata file must be atomic. I.e. both changes through WebDAV and the metadata file must be made available to clients simultaneously to avoid inconsistent state.

If a client receives a metadata file before changes are available through WebDAV, the client would receive invalid references to files.

Probably it is enough to first upload changes through WebDAV and then upload the new metadata file. The RFC should state this more explicitly.