You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encounterd something very strange..
When i'm trying to execute a GET request to retrieve a list of items, i can also specify a filter but when those values are wrong ( ex. guid == leaves) the result still gives me a complete list with all the entities back from the database. ( ex. GetUsers returns all the users)
It looks like there is no validation on the filters.
How do i return an error when the result of the filter returns nothing?
The text was updated successfully, but these errors were encountered:
Just gave this a shot and it looks like it works fine for non-guids (returns an empty list when no records match the filter), but does indeed not work for guid fields. This is a bug in Sieve. I submitted a ticket to them. Will try and submit a PR to them myself at some point, but if you want to as well, go for it!
Closing this as it is not necessarily an issue with craftsman as much as Sieve. Thanks for submitting this though!
I've encounterd something very strange..
When i'm trying to execute a GET request to retrieve a list of items, i can also specify a filter but when those values are wrong ( ex. guid == leaves) the result still gives me a complete list with all the entities back from the database. ( ex. GetUsers returns all the users)
It looks like there is no validation on the filters.
How do i return an error when the result of the filter returns nothing?
The text was updated successfully, but these errors were encountered: