Filtering by 'created_at' and 'updated_at' when specify invalid operator causes 500 error

Bug #1517935 reported by Darja Shakhray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Darja Shakhray

Bug Description

ENVIRONMENT: devstack, Glance (master, 19.11.2015)

STEPS TO REPRODUCE:
send request
    curl -H "X-Auth-Token: token" -X GET http://localhost:9292/v2/images?updated_at=invalid_operator:100 -i
or
    curl -H "X-Auth-Token: token" -X GET http://localhost:9292/v2/images?created_at=invalid_operator:100 -i

EXPECTED RESULT:
status code 400 and message error

ACTUAL RESULT:
<html>
 <head>
  <title>500 Internal Server Error</title>
 </head>
 <body>
  <h1>500 Internal Server Error</h1>
  The server has either erred or is incapable of performing the requested operation.<br /><br />

 </body>
</html

Changed in glance:
assignee: nobody → Darja Shakhray (dshakhray)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/247580

Changed in glance:
status: New → In Progress
Erno Kuvaja (jokke)
Changed in glance:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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

commit a9222ae4880b7dfb505554e59b8e2914c8a73e2f
Author: Darja Shakhray <email address hidden>
Date: Thu Nov 19 18:31:58 2015 +0300

    Fix 500 error when filtering with specified invalid operator

    Added catch 'InvalidFilterOperatorValue' exception.

    Change-Id: I200b79d4c197d96a7fdbf288161422c80eb97879
    Closes-bug: #1517935

Changed in glance:
status: In Progress → Fix Committed
Changed in glance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.