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 am asking because a similar URL does not even pass parsing in ODL libraries (which would be tracked under 809). This would actually possibly be a workaround one that is made working. So, this is actually supposed to work? NICE.
Short summary
Odata count function does not work properly when inside the expand property. either throws a exception or displays incorrect values.
Assemblies affected
Version affected/Tested :
Microsoft.AspNetCore.OData @7.0.1
Reproduce steps
Create 2 models
register the odata endpoint as per documentation, and try to hit the following url
http://<serverAddress>/<configuredPath>/CompanyEnvironment?$expand=Company($count=true)&$count=true
the '$count=true' inside the expand causes a Value Null Exception, the count outside works as expected.
Expected result
all expanded items should have a count in the format "fieldName@odata.count":number
Actual result
either throws a exception on shows incorrect values
The text was updated successfully, but these errors were encountered: