Create User failed with '400 Expecting User' message

Bug #887797 reported by Jenny Vo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Yogeshwar

Bug Description

Create User failed with '400 Expecting User' message
example of the curl call:
curl -X POST http://0.0.0.0:35357/users -d '<user xmlns="http://docs.openstack.org/identity/api/v2.0" <email address hidden>" username="yoga" enabled="true" password="1234"/>' -H "Accept: application/xml" -H "Content-type: application/xml" -H "X-AUTH-TOKEN: 999888777666"

Revision history for this message
Yogeshwar (yogesh-srikrishnan) wrote :

This issue has been fixed in my commit that is pending approval.
The commit is for issue bug 881794

Changed in keystone:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Yogeshwar (yogesh-srikrishnan) wrote :

The call works if it is

curl -X POST http://0.0.0.0:35357/users -d '<user xmlns="http://docs.openstack.org/identity/api/v2.0" <email address hidden>" name="yoga" enabled="true" password="1234"/>' -H "content-type: application/xml" -H "X-AUTH-TOKEN: 999888777666"

Issue here is the attribute name which is what code is accepting and not the username as per the contract.

Changed in keystone:
status: Confirmed → Fix Committed
status: Fix Committed → In Progress
assignee: nobody → Yogeshwar (yogesh-srikrishnan)
Changed in keystone:
status: In Progress → Fix Released
status: Fix Released → Fix Committed
milestone: none → essex-3
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: essex-3 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.