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: swift: fix anonymous user's error code of getting object #13242

Merged

Conversation

Jing-Scott
Copy link
Contributor

The openstack swift will return 401 rather than 403 when the anon user has no permission to get objects.

Fixes: http://tracker.ceph.com/issues/18806
Signed-off-by: Jing Wenjun jingwenjun@cmss.chinamobile.com

Copy link
Contributor

@rzarzynski rzarzynski left a comment

Choose a reason for hiding this comment

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

Looks good. I will merge this after testing.

@@ -17,6 +17,7 @@ class RGWGetObj_ObjStore_SWIFT : public RGWGetObj_ObjStore {
RGWGetObj_ObjStore_SWIFT() {}
~RGWGetObj_ObjStore_SWIFT() {}

int verify_permission() override;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm 100% behind the override. Thanks!

@rzarzynski
Copy link
Contributor

@rzarzynski
Copy link
Contributor

@Jing-Scott: the results look OK. Could you please alter the commit message to have:

  • a new line between the commit's title and its description,
  • lines wrapped before 80th column?

I mean something like this example below:

rgw: swift: fix anonymous user's error code of getting object

The openstack swift will return 401 rather than 403 when
the anon user has no permission to get objects.
    
Fixes: http://tracker.ceph.com/issues/18806
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>

The openstack swift will return 401 rather than 403 when
the anon user has no permission to get objects.

Fixes: http://tracker.ceph.com/issues/18806
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
@Jing-Scott Jing-Scott force-pushed the dev/fix-swift-anon-getobj-error-code branch from 184842e to 318de28 Compare February 6, 2017 11:24
@Jing-Scott
Copy link
Contributor Author

@rzarzynski : okay, no problem! done :)

@rzarzynski rzarzynski merged commit 7511564 into ceph:master Feb 6, 2017
@rzarzynski
Copy link
Contributor

@Jing-Scott: merged. Thanks!

@Jing-Scott Jing-Scott deleted the dev/fix-swift-anon-getobj-error-code branch February 10, 2017 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants