Update role 'NoneType' object has no attribute 'setdefault'

Bug #1247830 reported by Marcos Lobo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Adam Young

Bug Description

Havana Keystone configured with LDAP.

When you try to update a role using the API:

curl -X PATCH --insecure -H "X-Auth-Token:the_token" -H "Content-type: application/json" -d '{"role": {"name": "the new name"}}' https://localhost:35357/v3/roles/role_id

Keystone server raises an error:

{"error": {"message": "An unexpected error prevented the server from fulfilling your request. 'NoneType' object has no attribute 'setdefault'", "code": 500, "title": "Internal Server Error"}}

The role information is updated, but keystone server raises that error.

Changed in keystone:
assignee: nobody → Marcos Lobo (marcos-fermin-lobo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/55141

Changed in keystone:
status: New → In Progress
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
Changed in keystone:
assignee: Marcos Lobo (marcos-fermin-lobo) → Adam Young (ayoung)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/55141
Committed: http://github.com/openstack/keystone/commit/24da79bded4385e62265f43977efdcd2237f83d3
Submitter: Jenkins
Branch: master

commit 24da79bded4385e62265f43977efdcd2237f83d3
Author: Marcos Lobo <email address hidden>
Date: Mon Nov 4 14:10:59 2013 +0100

    Role NoneType object has no attribute setdefault

    Havana Keystone configured with LDAP.

    When you try to update a role using the API:

    curl -X PATCH --insecure -H "X-Auth-Token:the_token" -H
    "Content-type:
    application/json" -d '{"role": {"name": "the new name"}}'
    https://localhost:35357/v3/roles/role_id

    Keystone server raises an error:

    {"error": {"message": "An unexpected error prevented the server from
    fulfilling your request. 'NoneType' object has no attribute
    'setdefault'", "code": 500, "title": "Internal Server Error"}}

    The role information is updated, but keystone server raises that
    error.

    Closes-Bug: #1247830

    Change-Id: I686e40e42371f6e2cea55110554456a33939799c

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → icehouse-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-1 → 2014.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.