⚠️ This issue respects the following points: ⚠️
Bug description
I recently investigated test failures in text and it turned out they were due to etags not getting updated if the same file is written twice in the same second with different content. Salvatore investigated and found:
The etag update on the cache is skipped if the mtime did not change, and the precision for that is seconds (unix timestamp).
Steps to reproduce
- Login
- Upload one file
- Upload another file to the same location within the same second.
Originally found with https://github.com/nextcloud/text/blob/cb19d998ed8132e20da6c17085ed333bcd6b32a5/playwright/e2e/propfind.spec.ts#L25
I will add a playwright test that triggers this on server itself.
Expected behavior
Etag changes when the file is overwritten.
Nextcloud Server Info
Using https://github.com/nextcloud-libraries/nextcloud-e2e-test-server with the default setup. text and viewer app installed.
Bug description
I recently investigated test failures in text and it turned out they were due to etags not getting updated if the same file is written twice in the same second with different content. Salvatore investigated and found:
Steps to reproduce
Originally found with https://github.com/nextcloud/text/blob/cb19d998ed8132e20da6c17085ed333bcd6b32a5/playwright/e2e/propfind.spec.ts#L25
I will add a playwright test that triggers this on server itself.
Expected behavior
Etag changes when the file is overwritten.
Nextcloud Server Info
Using https://github.com/nextcloud-libraries/nextcloud-e2e-test-server with the default setup. text and viewer app installed.