s3api should return more-useful error message when quotas are exceeded
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Currently, we translate the 413 coming out of account/container quota middlewares to a 400 with a body like
<Error>
<Code>
<Message>Your proposed upload exceeds the maximum allowed object size.</Message>
<RequestId
</Error>
AWS doesn't really have the same notion of account/bucket quotas (they're happy to just keep charging you money) so I get why this was the closest approximation we could find... but I've often had users and support get confused and waste time checking whether the client tried to upload more than 5GB at a time, or copy an object that was >5GB. It'd be much more useful to have the message include something about quotas -- error code should maybe stay the same, though.
Reviewed: https:/ /review. opendev. org/749382 /git.openstack. org/cgit/ openstack/ swift/commit/ ?id=f8a9a6e1162 0d1abc537bcef10 7fa21af53fc6d2
Committed: https:/
Submitter: Zuul
Branch: master
commit f8a9a6e11620d1a bc537bcef107fa2 1af53fc6d2
Author: Tim Burke <email address hidden>
Date: Tue Sep 1 12:43:03 2020 -0700
s3api: Make quota-exceeded errors more obvious
Change-Id: Ia8db40227343e9 c4555267c62072a 1c9bfc28c66
Closes-Bug: #1893811