v3 controller does not check for required field

Bug #1136342 reported by gordon chung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
xingzhou

Bug Description

when creating item, 500 Internal Server Error returned when no name given. Should return 400 Bad Request code.

ie. curl -X 'POST' -H 'X-Auth-Token: openstack1' -H 'Content-Type: application/json' -d '{"project":{"description":"est"}}' http://localhost:35357/v3/projects

gordon chung (chungg)
Changed in keystone:
assignee: nobody → gordon chung (chungg)
gordon chung (chungg)
Changed in keystone:
assignee: gordon chung (chungg) → nobody
description: updated
Dolph Mathews (dolph)
Changed in keystone:
status: New → Triaged
importance: Undecided → Low
xingzhou (xingzhou)
Changed in keystone:
assignee: nobody → xingzhou (xingzhou)
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/39635

Changed in keystone:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/39635
Committed: http://github.com/openstack/keystone/commit/05c8c487b549041be44275af6c90998d9fbf565e
Submitter: Jenkins
Branch: master

commit 05c8c487b549041be44275af6c90998d9fbf565e
Author: xingzhou <email address hidden>
Date: Wed Jul 31 11:25:53 2013 +0800

    V3 API need to check mandatory field when creating resources

    When creating items like project, role through V3 API, if name field
    is missing, the server will return 500 internal error or 409 conflict
    error, shall return 400 bad request error instead

    Change-Id: I9deddcd4cf801306c16555b59bba7fdfab6556a7
    Fixes: Bug 1136342

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