openstack-python-openstackc.../openstackclient
Colleen Murphy 853ea5ab59 Narrow expected responses for CheckUserInGroup
When checking whether a given user is in a given group, keystone will
return a 404 Not Found if all went well but the user was not in the
group. It may also return a 403 if the user and the group are in
different backends, which would also mean that the user was not in the
group[1]. Any other 400 response is a client error and any 500 response
is a server error to which the user should be alerted.

Without this patch, openstackclient treats any exception as a valid "not
found" and may end up hiding server errors. This patch reduces the
caught exceptions to 403 and 404 responses and treats everything else as
an error.

[1] https://developer.openstack.org/api-ref/identity/v3/?expanded=check-whether-user-belongs-to-group-detail#check-whether-user-belongs-to-group

Closes-bug: #1672634

Change-Id: Id3f3b2409b7cee480ee3c19b6d6c3070599ffe8f
2017-03-14 09:23:19 +01:00
..
api Make 'object save' fast again 2017-01-09 16:19:29 +00:00
common Trivial Fix 2017-03-05 18:21:46 +00:00
compute Merge "Add "--private-key" option for "keypair create"" 2017-03-08 02:51:48 +00:00
identity Narrow expected responses for CheckUserInGroup 2017-03-14 09:23:19 +01:00
image openstack image create : --file and --volume exclude each other 2017-02-24 08:50:37 +01:00
locale Imported Translations from Zanata 2016-06-04 06:18:46 +00:00
network Merge "Fix handling the use_default_subnet_pool attribute" 2017-03-10 02:52:15 +00:00
object translate all command help strings 2016-11-17 02:33:42 +00:00
tests Narrow expected responses for CheckUserInGroup 2017-03-14 09:23:19 +01:00
volume Merge "Support --no-property in "volume set" command" 2017-03-06 03:47:49 +00:00
__init__.py Change version reporting to use pbr 2013-08-02 12:11:49 -05:00
i18n.py Update translation setup 2016-01-29 08:18:50 +09:00
shell.py Fix wrong behavior of parsing plugin service name 2017-02-08 00:47:22 +00:00