Hi!
When attempting to use $count on a navigation property inside a $filter expression in an OData request, the service returns a parsing error instead of either handling the query or explicitly rejecting it as unsupported.
Request:
http://aicore.localhost:8002/odata/SpecialOrderProducts?$filter=etas/$count eq 0
Actual behavior
The service responds with:
{
"@context": "http://aicore.localhost:8002/odata/$metadata#SpecialOrderProducts",
"value": [
{
"OData-error": {
"code": "expression_parser_error",
"message": "Encountered an invalid symbol at: etas/>$<count eq 0",
"target": null,
"details": [],
"innererror": {}
}
}
]
}
Hi!
When attempting to use $count on a navigation property inside a $filter expression in an OData request, the service returns a parsing error instead of either handling the query or explicitly rejecting it as unsupported.
Request:
http://aicore.localhost:8002/odata/SpecialOrderProducts?$filter=etas/$count eq 0
Actual behavior
The service responds with:
{
"@context": "http://aicore.localhost:8002/odata/$metadata#SpecialOrderProducts",
"value": [
{
"OData-error": {
"code": "expression_parser_error",
"message": "Encountered an invalid symbol at: etas/>$<count eq 0",
"target": null,
"details": [],
"innererror": {}
}
}
]
}