Updating image with invalid operation type raises 500
Bug #1456157 reported by
Kamil Rykowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Kamil Rykowski | ||
Kilo |
Fix Released
|
High
|
Kamil Rykowski |
Bug Description
When trying to update an image using PATCH method I got Internal Server Error when 'op' (operation) has invalid value. We could consider changing this behavior to return some kind of 40x message (400 probably).
Steps to reproduce:
URL: http://
Headers:
X-Auth-Token: XYZ
Content-Type: application/
Data:
[{"path": "/description", "value": "", "op": "axdd"}]
Result: 500 Internal Server Error
I'm opening it as `Opinion`, as there can be a reason why are we returning 500 instead of some 40x code.
Changed in glance: | |
status: | New → Opinion |
assignee: | nobody → Kamil Rykowski (kamil-rykowski) |
Changed in glance: | |
importance: | Undecided → High |
tags: | added: kilo-backport-potential |
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | liberty-1 → 11.0.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/184023
Review: https:/