Early request in previewing a file gives 500
server error for old
and new
webdav
#7502
Labels
500
server error for old
and new
webdav
#7502
Description
When previewing (downloading) the file with the
old
andnew
webdav after a file is uploaded. Some times the the uploaded files is not ready yet to get it. At that time the server should respond with a status code of425
not500
.Steps to reproduce as an
admin
userPOSTPROCESSING_DELAY
so as to reproduce this issuetextfile.txt
curl -X PUT -vk -u admin:admin -d "hello" https://localhost:9200/dav/files/admin/textfile.txt
old
ornew
webdav make a request to preview the uploaded filecurl -k -X GET 'https://localhost:9200/remote.php/dav/files/admin/textfile.txt?x=32&y=32&forceIcon=0&preview=1' -uadmin:admin -v
Expeted Behaviour
The expected behaviour should have been the status code
425
.Actual Behaviour
The server is giving
500
status code as Internal Server ErrorEnvironment
Ocis (build with commit de4529d) locally
The text was updated successfully, but these errors were encountered: