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: set bucket versioninig donot change versioning status if missing status in xml #17662

Merged
merged 1 commit into from Sep 28, 2017

Conversation

shashalu
Copy link
Contributor

@shashalu
Copy link
Contributor Author

@cbodley please take a look, thx

@shashalu
Copy link
Contributor Author

jenkins test this please

@cbodley
Copy link
Contributor

cbodley commented Sep 13, 2017

hi @shashalu, i'm looking at the put bucket versioning api and it lists the Status as optional, so i would prefer not to reject the request if it's missing. if missing, we should just not change the versioning status of the bucket (if it's enabled, leave it enabled - if suspended, leave suspended). what do you think?

…g "Status" in xml

Fixes: http://tracker.ceph.com/issues/21364

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
@shashalu
Copy link
Contributor Author

@cbodley Agree. If it's nonversioned, leave it nonversioned. I revised the commit.

@shashalu shashalu changed the title rgw: set bucket versioninig return -EINVAL if "Status" not exists in xml rgw: set bucket versioninig donot change versioning status if missing status in xml Sep 14, 2017
Copy link
Contributor

@cbodley cbodley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@yuriw yuriw merged commit 032d819 into ceph:master Sep 28, 2017
@shashalu shashalu deleted the fix-set-bucket-versioning branch October 11, 2017 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants