Public bug reported:

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"}}

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
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):
  New

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to