Skip to content
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

rgw: ListMultipartUploads returns the real upload Owners #43715

Merged
merged 4 commits into from Nov 3, 2021

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Oct 28, 2021

the ListMultipartUploads response includes an Owner and Initiator for each multipart upload in the list, but we were just returning the requesting user for every upload instead

we get the real owner field out of rgw_bucket_dir_entry when listing the uploads, so need to store that with MultipartUpload for later use in RGWListBucketMultiparts_ObjStore_S3::send_response()

Fixes: https://tracker.ceph.com/issues/52716

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Signed-off-by: Casey Bodley <cbodley@redhat.com>
Signed-off-by: Casey Bodley <cbodley@redhat.com>
also added override specifiers in RadosMultipartUpload

Signed-off-by: Casey Bodley <cbodley@redhat.com>
the ListMultipartUploads response includes an Owner and Initiator for
each multipart upload in the list, but we were just returning the
requesting user for every upload instead

we get the real owner field out of rgw_bucket_dir_entry when listing the
uploads, so need to store that with MultipartUpload for later use in
RGWListBucketMultiparts_ObjStore_S3::send_response()

Fixes: https://tracker.ceph.com/issues/52716

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Oct 29, 2021

jenkins test make check

@cbodley
Copy link
Contributor Author

cbodley commented Oct 29, 2021

added test case at ceph/s3-tests#415, and verified that it fails without this pr and passes with

@cbodley cbodley requested a review from dang October 29, 2021 17:14
@cbodley
Copy link
Contributor Author

cbodley commented Nov 3, 2021

@cbodley cbodley merged commit 0532df2 into ceph:master Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants