Project

General

Profile

Actions

Bug #9230

closed

illegal filters return 0 results rather than indicating an error

Added by Joshua Randall over 8 years ago. Updated over 8 years ago.

Status:
Duplicate
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
-
Story points:
-

Description

For example, if I accidentally use "=" instead of "==" as the comparison operator, I get 0 items back without any indication that there is no way that filter could ever match:

# arv collection list -f '[["modified_at","=","2016-05-18T13:22:11Z"]]' -l 0
{
 "kind":"arvados#collectionList",
 "etag":"",
 "self_link":"",
 "offset":0,
 "limit":0,
 "items":[],
 "items_available":0
}
# arv collection list -f '[["modified_at","==","2016-05-18T13:22:11Z"]]' -l 0
{
 "kind":"arvados#collectionList",
 "etag":"",
 "self_link":"",
 "offset":0,
 "limit":0,
 "items":[],
 "items_available":2597859
}


Related issues 1 (1 open0 closed)

Is duplicate of Arvados - Bug #7166: [API] specifying an invalid filter should result in an errorNewActions
Actions

Also available in: Atom PDF