Open rhafer opened 3 weeks ago
[!Note] All requests work fine with SAME mtime and SAME content
The problem exists with the normal upload as well. SAME mtime but DIFFERENT content.
First upload:
curl -XPUT 'https://localhost:9200/remote.php/dav/files/admin/lorem.txt' \
-d'content' \
-H'X-OC-Mtime: 1565237893' \
-uadmin:admin -k
< HTTP/1.1 201 Created
Second upload:
curl -XPUT 'https://localhost:9200/remote.php/dav/files/admin/lorem.txt' \
-d'kontent' \
-H'X-OC-Mtime: 1565237893' \
-uadmin:admin -k
< HTTP/1.1 204 No Content
Third upload:
curl -XPUT 'https://localhost:9200/remote.php/dav/files/admin/lorem.txt' \
-d'lontent' \
-H'X-OC-Mtime: 1565237893' \
-uadmin:admin -k
< HTTP/1.1 500 Internal Server Erro
When uploading a file with the same mtime and name but different contents multiple times, I get "500 Internal Server Error" for all uploads after the 2nd upload.
Take e.g. the these three uploads. Each uploading to the same filename using the same mtime in the the
Upload-Metadata
, but each time a different content:The first two requests work fine (the 2nd one creates a new revision of the file). The 3rd one however causes a 500 reply:
Originally posted by @rhafer in https://github.com/owncloud/ocis/issues/9498#issuecomment-2460082092