v3 controller does not check for required field

Bug #1136342 reported by gordon chung on 2013-02-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)

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) on 2013-02-28
Changed in keystone:
assignee: nobody → gordon chung (chungg)
gordon chung (chungg) on 2013-03-05
Changed in keystone:
assignee: gordon chung (chungg) → nobody
description: updated
Dolph Mathews (dolph) on 2013-03-06
Changed in keystone:
status: New → Triaged
importance: Undecided → Low
xingzhou (xingzhou) on 2013-04-25
Changed in keystone:
assignee: nobody → xingzhou (xingzhou)

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

Changed in keystone:
status: Triaged → In Progress

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) on 2013-09-05
Changed in keystone:
milestone: none → havana-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2013-10-17
Changed in keystone:
milestone: havana-3 → 2013.2
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers