← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1491049] Re: Filtering by invalid version string causes 500 error

 

Reviewed:  https://review.openstack.org/223558
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=cd0ec70c952c439e3fdf271e14459ea0be88be6e
Submitter: Jenkins
Branch:    master

commit cd0ec70c952c439e3fdf271e14459ea0be88be6e
Author: Darja Shakhray <dshakhray@xxxxxxxxxxxx>
Date:   Tue Sep 15 14:44:00 2015 +0300

    Fix 500 error when filtering by invalid version string
    
    Added checking the filter version pattern semver
    
    ApiImpact
    FastTrack
    
    Change-Id: Id3e55faa7fdb6c69cd482c8a6b5b7152fda7310c
    Closes-bug: #1491049


** Changed in: glance
       Status: In Progress => 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/1491049

Title:
  Filtering by invalid version string causes 500 error

Status in Glance:
  Fix Released

Bug description:
  When I want to filter a list of artifacts by version if I provide
  invalid semver string (for example, 'version=llll') then the server
  returns 500 error.

  request:
  GET /v3/artifacts/some_type/2.0?version=llll

  Stacktrace: http://paste.openstack.org/show/438140/

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


References