]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix handling RGWUserInfo::system in RGWHandler_REST_SWIFT. 13006/head
authorRadoslaw Zarzynski <rzarzynski@mirantis.com>
Tue, 10 Jan 2017 11:09:50 +0000 (12:09 +0100)
committerRadoslaw Zarzynski <rzarzynski@mirantis.com>
Mon, 23 Jan 2017 18:35:14 +0000 (19:35 +0100)
commitf583485a4eacdf489ce00f93cd49dc147bfdb5f9
tree8610f79ae9e004c7c8992c4204aad2e3879d7d67
parent03458fae64df24d58426e5b3274dd1981ef42fc6
rgw: fix handling RGWUserInfo::system in RGWHandler_REST_SWIFT.

Before this patch the flag was wrongly handled in the Swift API
implementation. In rare conditions this might result in setting
req_state::system_request.

This may happen only if both of those conditions are fulfilled:
 * RadosGW is running in a multi-site configuration (at least
   one user with the system flag turned on is present),
 * the "rgw_swift_account_in_url" configurable has been switched
   to true. The value is false by default and our documentation
   doesn't actually mention about the option.

The issue doesn't affect Jewel nor any previous release.

Fixes: http://tracker.ceph.com/issues/18476
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 8dac93392b6679c3ad9bb28ea66f6bb8c7be511d)
src/rgw/rgw_rest_swift.cc