Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disallow to delete a file during the processing. #8127

Closed
2403905 opened this issue Jan 4, 2024 · 0 comments · Fixed by #8132
Closed

Disallow to delete a file during the processing. #8127

2403905 opened this issue Jan 4, 2024 · 0 comments · Fixed by #8132

Comments

@2403905
Copy link
Contributor

2403905 commented Jan 4, 2024

Describe the bug

We want to disallow deleting a file during the processing.

Related to #7909

Steps to reproduce

  1. Login as admin
driveid=`curl -ku admin:admin https://localhost:9200/graph/v1.0/me/drives | jq -c '.[] | .[] | select(.driveAlias | contains("personal")) | .id' -r`

curl -ku admin:admin -XPUT -d"content" 'https:/localhost:9200/dav/spaces/'$driveid'/file.txt'
curl -ku admin:admin -XDELETE 'https://localhost:9200/dav/spaces/'$driveid'/file.txt'

Expected behavior

Disallow to delete a file during the processing like on the webUI to prevent collecting the orphan uploads.

Actual behavior

Collect the orphan uploads because the destination doesn't exist when post-processing started.

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

POSTPROCESSING_DELAY=10s

Additional context

Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants