← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1461776] Re: Error messages are encoded to HTML entity

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => liberty-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1461776

Title:
  Error messages are encoded to HTML entity

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released
Status in Glance kilo series:
  Fix Committed

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 &gt;= 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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1461776/+subscriptions


References