← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1110435] Re: Having enabled="true" in json data when creating user will produce 500

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => havana-1

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

Title:
  Having enabled="true" in json data when creating user will produce 500

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  when we have enabled="true" (with double quotes) in the json blob
  keystone will 500.

  REQ:

   '{
      "user": {
          "email": "'XXXX",
          "enabled": true,
          "id": "XXXXXX",
          "name": "'XXXXXX,
          "password": "XXXXX",
          "project_id": "TENANT_ID",
          "username": "'XXXXX"
      }
  }

  
  user_data:{'username': u'XXXXX21916821092@xxxxxxxxxx', 'project_id': u'TENANTID-XXXXX2638624862', 'name': u'XXXXX21916821092@xxxxxxxxxx', 'password': u'XXXXX-PASS', 'enabled': u'true', 'email': u'XXXXX21916821092@xxxxxxxxxx', 'id': '9cf336dc3684400686454e093ac42f12'}
  (root): 2013-01-30 13:50:32,681 ERROR wsgi __call__ invalid literal for int() with base 10: 'true' (original cause: ValueError: invalid literal for int() with base 10: 'true') 'INSERT INTO user (id, name, password, enabled, extra) VALUES (%s, %s, %s, %s, %s)' [{'extra': {'username': u'XXXXX21916821092@xxxxxxxxxx', 'project_id': u'TENANTID-XXXXX2638624862', 'email': u'XXXXX21916821092@xxxxxxxxxx'}, 'password': '$6$rounds=40000$2J7ChjfjKYLyo/sI$41VexgJAA9aHvbNlPwDFM6/qQb59vovGLS0MdTGGI00nWHkWKy6j0eTgRuVgjCEVQChQY04G2LbnWU/ynK.4w.', 'enabled': u'true', 'id': '9cf336dc3684400686454e093ac42f12', 'name': u'XXXXX21916821092@xxxxxxxxxx'}]

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