-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rgw/sfs: Don't return version id for unversioned buckets
Avoid to return the version id when getting the object from the database when it wasn't explicitly required. A few tags s3tests were failing because, for example: ```c++ int RGWDeleteObjTags::verify_permission(optional_yield y) { if (!rgw::sal::Object::empty(s->object.get())) { auto iam_action = s->object->get_instance().empty() ? rgw::IAM::s3DeleteObjectTagging: rgw::IAM::s3DeleteObjectVersionTagging; ``` If `object->get_instance()` is not empty it changes the action to be looked for to `DeleteObjectVersionTagging`. The s3test is running in an unversioned bucket and setting the `DeleteObjectTagging` action to be allowed, but it was later looking for a different one. Fixes: https://github.com/aquarist-labs/s3gw/issues/675 Fixes: https://github.com/aquarist-labs/s3gw/issues/695 Signed-off-by: Xavi Garcia <[email protected]>
- Loading branch information
Showing
4 changed files
with
25 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters