yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #49363
[Bug 1565108] Re: "unexpected error" attempting to rename a project when name is already in use
Reviewed: https://review.openstack.org/301418
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=c1be6883f250e6bc0ad1b43eb516186f74a477f1
Submitter: Jenkins
Branch: master
commit c1be6883f250e6bc0ad1b43eb516186f74a477f1
Author: liyingjun <yingjun.li@xxxxxxxxxxxxxxx>
Date: Thu Mar 31 08:13:49 2016 +0800
Fix KeyError when rename to a name is already in use
When a user attempts to rename a project via the PATCH
v3/projects/{project_id} API, and the new name is already in-use, rather
than return a nice error explaining that the name is in use, keystone
blows up and raises `KeyError: 'is_domain'` in
_generate_project_name_conflict_msg.
Change-Id: I56fcd8fe1258e2d1de3e541144649ef619f86a7b
Closes-bug: #1565108
** Changed in: keystone
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1565108
Title:
"unexpected error" attempting to rename a project when name is already
in use
Status in OpenStack Identity (keystone):
Fix Released
Bug description:
When a user attempts to rename a project via the PATCH
v3/projects/{project_id} API, and the new name is already in-use,
rather than return a nice error explaining that the name is in use,
keystone blows up and returns an HTTP 500:
# curl -k -1 -i -X PATCH https://localhost:5000/v3/projects/e4e12eb216ca471cb2646bcdbdcc3ddc -H "User-Agent: python-keystoneclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 04a2539bb3144af6867d8c7e50b15607" -d '{"project": {"name": "Project_B"}}'
HTTP/1.1 500 Internal Server Error
Date: Fri, 01 Apr 2016 21:42:50 GMT
Server: Apache
Vary: X-Auth-Token
x-openstack-request-id: req-8d9904e7-5775-42ec-8fc5-773f7f38cbf2
Content-Length: 143
Connection: close
Content-Type: application/json
{"error": {"message": "An unexpected error prevented the server from
fulfilling your request.", "code": 500, "title": "Internal Server
Error"}}
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1565108/+subscriptions
References