← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1502850] Re: Location add does not catch BadStoreUri

 

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

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

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

Title:
  Location add does not catch BadStoreUri

Status in Glance:
  Fix Released
Status in Glance kilo series:
  In Progress
Status in Glance liberty series:
  Fix Released

Bug description:
  Overview:
  If you create an image and then use location-add to add a bad uri, the server returns a 500. As the BadStoreUri is not caught.

  How to produce:
  glance image-create

  glance location-add de6d8022-6954-4039-b53a-042e2fc909de --url file://
  500 Internal Server Error: The server has either erred or is incapable of performing the requested operation. (HTTP 500)

  2015-10-05 10:31:54.015 TRACE glance.common.wsgi     raise exceptions.BadStoreUri(uri=uri)
  2015-10-05 10:31:54.015 TRACE glance.common.wsgi BadStoreUri: The Store URI was malformed: http://

  Output:
  500

  Expected:
  400

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


References