POST /v2/images without an image body raises exception

Bug #1034972 reported by Brian Waldon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Alex Meade

Bug Description

Making the request 'curl -X POST http://example.com:9292/v2/images' fails with the following exception. It should not!

  File "/opt/stack/glance/glance/common/wsgi.py", line 518, in __call__
    action, request)
  File "/opt/stack/glance/glance/common/wsgi.py", line 539, in dispatch
    return method(*args, **kwargs)
  File "/opt/stack/glance/glance/api/v2/images.py", line 197, in create
    return self._parse_image(request)
  File "/opt/stack/glance/glance/api/v2/images.py", line 159, in _parse_image
    body = output.pop('body')
KeyError: 'body'

Revision history for this message
Brian Waldon (bcwaldon) wrote :

This probably applies to PUT also.

Changed in glance:
milestone: none → folsom-rc1
Alex Meade (alex-meade)
Changed in glance:
assignee: nobody → Alex Meade (alex-meade)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: Triaged → In Progress
Alex Meade (alex-meade)
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: folsom-rc1 → 2012.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.