-
Notifications
You must be signed in to change notification settings - Fork 184
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
Overwriting a file in the space within the allowed quota does not work #2829
Comments
@micbar is that really the expected behavior? |
@C0rby Versions and trashbin do not count into the quota. It should already be implemented like that. |
Ok, follow up question: In case the quota is exceeded let's say quota is 15 bytes and is 100% utilized, and the user overwrites a file with a bigger file, do we allow that? This means the user would effectively use more than 100% of their quota. Storage (15 bytes quota):
Now overwrite File1 with a file of size 30 bytes. Storage (15 bytes quota):
I'm asking because I already have a fix for this issue but if we still need to stay within the quota then I have to change the quota check some more. |
No, we do not allow exceeding the quota. |
A fix has been implemented but the ticket is still open because Reva hasn't been updated in oCIS yet. |
Fix has landed in ocis. Closing this... |
Describe the bug
Api test for case: https://github.com/owncloud/ocis/tree/apiTestQuota
Steps to reproduce
Steps to reproduce the behavior:
curl -k https://localhost:9200/dav/spaces/{space_id}/test.txt -X PUT -d "7 bytes" -v -u admin:admin
curl -k https://localhost:9200/dav/spaces/{space_id}/test.txt -X PUT -d "0010 bytes" -v -u admin:admin
Expected behavior
the total quota is not exceeded by the new version of the file. The new file should be saved.
expect: 204. used quota: 10. remaining quota: 5
Actual behavior
error 507. File "test.txt" 10 Bytes does not overwrite
OCIS_VERSION=1.15.0
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: