Auth call returns None as TenantId

Bug #862752 reported by Yogeshwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
High
Dolph Mathews

Bug Description

 curl -X GET http://localhost:5001/tokens/1c65ac0b-3649-4f60-afb5-817dea8d571f -H "X-Auth-Token: 63c548c4-aac5-4447-936c-95fb55084884" -H "Accept: application/xml"

<access xmlns="http://docs.openstack.org/identity/api/v2.0"><token expires="2011-09-30T15:15:39.758240" id="1c65ac0b-3649-4f60-afb5-817dea8d571f">
Issue 1:
<tenant name="project-y" id="3"/></token>
<user username="admin" id="3" tenantId="None">
tenantId => None is returned.If value is empty nothing should be returned.

<roles xmlns="http://docs.openstack.org/identity/api/v2.0"><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="3" name="Member" tenantId="3"/><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="1" name="Admin"/></roles></user></access>

Issue 2:

curl -X POST http://localhost:5000/tokens -d "<?xml version='1.0' encoding='UTF-8'?><auth xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://docs.openstack.org/identity/api/v2.0' tenantId='3'> <token id='63c548c4-aac5-4447-936c-95fb55084884'/></auth>" -H "Content-type: application/xml" -H "Accept: application/json"

<access xmlns="http://docs.openstack.org/identity/api/v2.0">
<token expires="2011-09-30T15:15:39.758240" id="1c65ac0b-3649-4f60-afb5-817dea8d571f"/> => XML doesnt return tenant id as a part of Token.
The json call does return.

<user name="admin" id="3"><roles xmlns="http://docs.openstack.org/identity/api/v2.0"><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="3" name="Member" tenantId="3"/><role xmlns="http://docs.openstack.org/identity/api/v2.0" id="1" name="Admin"/></roles></user><serviceCatalog><service type="identity-service" name="identity"><endpoint region="RegionOne" internalURL="http://127.0.0.1:5000/v2.0" publicURL="http://keystone.publicinternets.com/v2.0" adminURL="http://127.0.0.1:5001/v2.0"/></service></serviceCatalog></access>

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
milestone: none → diablo-4
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → High
status: New → In Progress
Revision history for this message
Dolph Mathews (dolph) wrote :

This report is quite old, and both of the above issues have been fixed & released.

Changed in keystone:
status: In Progress → Fix Released
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.