Bug #10475
closedrgw: setting bucket metadata via swift api removes existing metadata
100%
Description
According to http://docs.openstack.org/api/openstack-object-storage/1.0/content/POST_updateContainerMeta__v1__account___container__storage_container_services.html the existing metadata should not be affected.
commit:f67bfa24fd6f69c2fcc0987eba8b6b426dd78320
Updated by Josh Durgin over 9 years ago
FWIW I filed this based on reading RGWPutMetadata::execute() during a review: https://github.com/ceph/ceph/blob/6f44f7a0a9847e419ce2783164633efa71218380/src/rgw/rgw_op.cc#L1940
Updated by Dmytro Yurchenko over 9 years ago
- Status changed from New to In Progress
Sending new metadata to an object will erase existing ones too.
I couldn't test it, because development version has troubles with returning back bucket's custom metadata.
So I had to fix that first. I will provide both fixes in one patch.
Updated by Dmytro Yurchenko over 9 years ago
- % Done changed from 20 to 40
Implemented correct metadata merging and deletion according to:
http://docs.openstack.org/api/openstack-object-storage/1.0/content/delete-container-metadata.html
Now testing and improving the patch before publishing it.
Updated by Dmytro Yurchenko about 9 years ago
- % Done changed from 40 to 100
Now waiting for the review.
https://github.com/ceph/ceph/pull/3561
Updated by Sage Weil about 9 years ago
- Status changed from In Progress to Fix Under Review
Updated by Yehuda Sadeh about 9 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Loïc Dachary about 9 years ago
- giant backport https://github.com/ceph/ceph/pull/4034
Updated by Sage Weil about 9 years ago
- Status changed from Pending Backport to Resolved