Commit e416427
committed
rgw: return MalformedXML for empty objects list in DeleteObjects
When a request contains an empty list of objects, the current
implementation returns a 200 OK. However, this behavior may raise
security concerns, as it could imply the user has access to the
bucket, even though access policies are only evaluated per object.
To mitigate this risk, returning a 400 Bad Request would be a more
secure approach. This ensures that no assumption is made about the
user’s access to the bucket or its objects. Furthermore, this
adjustment aligns with AWS behavior, enhancing compatibility.
Fixes: https://tracker.ceph.com/issues/68799
Signed-off-by: Seena Fallah <[email protected]>1 parent 7f9a2ec commit e416427
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7319 | 7319 | | |
7320 | 7320 | | |
7321 | 7321 | | |
| 7322 | + | |
| 7323 | + | |
| 7324 | + | |
| 7325 | + | |
| 7326 | + | |
| 7327 | + | |
7322 | 7328 | | |
7323 | 7329 | | |
7324 | 7330 | | |
| |||
0 commit comments