Project

General

Profile

Actions

Bug #7166

open

[API] specifying an invalid filter should result in an error

Added by Ward Vandewege over 8 years ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

This invalid filter

api_client.collections().list(filters=[['portable_data_hash', 'somepdhoranother+size']], select=['portable_data_hash', 'uuid'], limit=100000).execute()

is simply ignored; the query above returns all collections. Our SDK should probably throw an exception - or at least print a warning when an invalid filter is ignored.

api_client.collections().list(filters=[['portable_data_hash', '=', 'somepdhoranother+size']], select=['portable_data_hash', 'uuid'], limit=100000).execute()

the above filter is correct and works as expected.


Related issues

Has duplicate Arvados - Bug #9230: illegal filters return 0 results rather than indicating an errorDuplicate05/18/2016Actions
Has duplicate Arvados - Bug #8866: [API] 0 items found when requesting a list with filters that aren't URL-encodedDuplicate04/01/2016Actions
Actions

Also available in: Atom PDF