summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-05-24 19:12:23 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-05-24 19:12:23 -0700
commit3044fa8b88d87c74c20ba0a61547b17b8a978edb (patch)
tree737a64a724cee740aacde80eba582ab994cc82e7
parent4dafea4312a4843e2b26fb870138413117acb20d (diff)
downloadceph-3044fa8b88d87c74c20ba0a61547b17b8a978edb.tar.gz
rgw: determine owner after effetctive user
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/rgw/rgw_rest_s3.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/rgw/rgw_rest_s3.cc b/src/rgw/rgw_rest_s3.cc
index 28129f6b8af..6448b65fff0 100644
--- a/src/rgw/rgw_rest_s3.cc
+++ b/src/rgw/rgw_rest_s3.cc
@@ -1952,10 +1952,6 @@ int RGW_Auth_S3::authorize(RGWRados *store, struct req_state *s)
return -EPERM;
}
- // populate the owner info
- s->owner.set_id(s->user.user_id);
- s->owner.set_name(s->user.display_name);
-
/* now verify signature */
string auth_hdr;
@@ -2019,6 +2015,11 @@ int RGW_Auth_S3::authorize(RGWRados *store, struct req_state *s)
}
}
+ // populate the owner info
+ s->owner.set_id(s->user.user_id);
+ s->owner.set_name(s->user.display_name);
+
+
return 0;
}