Error messages are encoded to HTML entity
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Ankit Agrawal | ||
Kilo |
Fix Released
|
Medium
|
Ankit Agrawal |
Bug Description
If you pass min_disk or min_ram as -1 to the image create command, then it shows following error message on the command prompt.
$ glance image-create --name test --container-format bare --disk-format raw --file <filename> --min-disk -1
400 Bad Request: Invalid value '-1' for parameter 'min_disk': Image min_disk must be >= 0 ('-1' specified). (HTTP 400)
The above error message will be rendered correctly in the browser but it is not readable on the command prompt.
This issue belongs to v1 API, in case of v2 api it returns proper error message:
400 Bad Request: Invalid value '-1' for parameter 'min_disk': Cannot be a negative value (HTTP 400)
So we can make this error message consistent for both the APIs.
Changed in glance: | |
assignee: | nobody → Ankit Agrawal (ankitagrawal) |
description: | updated |
tags: | added: kilo-backport-potential |
no longer affects: | python-glanceclient |
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | liberty-1 → 11.0.0 |
The same issue is applicable for size parameter as well.