Per https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object-attributes.html:
"If the bucket is not versioned, you need the s3:GetObject and s3:GetObjectAttributes permissions."
Fixes: https://tracker.ceph.com/issues/72915
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
rgw_iam_add_objtags(this, s, has_s3_existing_tag, has_s3_resource_tag);
}
- /* XXXX the following conjunction should be &&--but iam_action2 is currently not
- * hooked up and always fails (but should succeed if the requestor has READ
- * acess to the object) */
- perm = (verify_object_permission(this, s, iam_action1) || /* && */
+ perm = (verify_object_permission(this, s, iam_action1) &&
verify_object_permission(this, s, iam_action2));
}
}
};
-
class RGWDeleteMultiObj : public RGWOp {
/**
* Handles the deletion of an individual object and uses