Closed
Description
DESCRIPTION
Filter parsing should produce an error on comparison of count()
with null
.
STEPS TO REPRODUCE
Using the GettingStarted project, the following request:
GET /api/people?filter=equals(count(books),null) HTTP/1.1
succeeds, without matching anything.
EXPECTED BEHAVIOR
An error is produced, because the number of rows (int) can never match null
.
Something along the lines of:
{
"errors": [
{
"id": "1792eb76-56f3-45f5-bea0-c9a318d475e3",
"status": "400",
"title": "The specified filter is invalid.",
"detail": "Failed to convert 'null' of type 'String' to type 'Int32'.",
"source": {
"parameter": "filter"
}
}
]
}
ACTUAL BEHAVIOR
No error is produced. The request succeeds without matching anything.