fix the upload postprocessing when the destination file does not exis… #4434
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix the upload postprocessing when the destination file does not exist anymore.
Describe the bug
When a file gets deleted before the postprocessing the destination and blob file are not found and BlobID is empty
owncloud/ocis#7909
Steps to reproduce
Expected behavior
ff2.txt is not found, and the upload is interrupted.
Actual behavior
The post-processing tries to handle the upload
Setup
Please describe how you started the server and provide a list of relevant environment variables or configuration files.
POSTPROCESSING_DELAY=10s PROXY_ENABLE_BASIC_AUTH=true OCIS_INSECURE=true PROXY_HTTP_ADDR=0.0.0.0:9200 OCIS_URL=https://host.docker.internal:9200 PROXY_TRANSPORT_TLS_KEY=./ocis.pem PROXY_TRANSPORT_TLS_CERT=./ocis.crt ./ocis/bin/ocis server
Additional context
logs: