← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1502850] [NEW] Location add does not catch BadStoreUri

 

Public bug reported:

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

** Affects: glance
     Importance: Undecided
     Assignee: Niall Bunting (niall-bunting)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Niall Bunting (niall-bunting)

-- 
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:
  New

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


Follow ups