← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1300982] [NEW] No headers in REST API auth request results in HTTP 500

 

Public bug reported:

REQ to http://host.example.com:35357/v2.0/tokens:
{"auth":{"passwordCredentials":{"username": "admin", "password":"***"}, "tenant":"admin"}}

RESP:
    Status Code: 500 Internal Server Error
    Connection: keep-alive
    Content-Length: 266
    Content-Type: application/xml
    Date: Wed, 11 Jul 2012 13:41:34 GMT
    Vary: X-Auth-Token

<?xml version="1.0" encoding="UTF-8"?>
<error xmlns="http://docs.openstack.org/identity/api/v2.0"; message="An unexpected error prevented the server from fulfilling your request. argument of type 'NoneType' is not iterable" code="500" title="Internal Server Error"/>

Adding header  "Content-type: application/json" fixes the problem.

It would be nice to improve the return code/error message.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1300982

Title:
  No headers in REST API auth request results in HTTP 500

Status in OpenStack Identity (Keystone):
  New

Bug description:
  REQ to http://host.example.com:35357/v2.0/tokens:
  {"auth":{"passwordCredentials":{"username": "admin", "password":"***"}, "tenant":"admin"}}

  RESP:
      Status Code: 500 Internal Server Error
      Connection: keep-alive
      Content-Length: 266
      Content-Type: application/xml
      Date: Wed, 11 Jul 2012 13:41:34 GMT
      Vary: X-Auth-Token

  <?xml version="1.0" encoding="UTF-8"?>
  <error xmlns="http://docs.openstack.org/identity/api/v2.0"; message="An unexpected error prevented the server from fulfilling your request. argument of type 'NoneType' is not iterable" code="500" title="Internal Server Error"/>

  Adding header  "Content-type: application/json" fixes the problem.

  It would be nice to improve the return code/error message.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1300982/+subscriptions


Follow ups

References