-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReference exception generated when using FilterClause.ApplyTo method with open properties in the filter query #1214
Labels
bug
Something isn't working
Comments
We certainly shouldn't be throwing a |
Below is a version of the repro steps without depending on the SDK and Graph metadata. Result is same - NRE thrown when ApplyTo is called.
The CLR model -
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assemblies affected
ASP.NET Core OData 8.2.5
Describe the bug
FilterClause.ApplyTo method generates a NullReferenceException if a open/dynamic property is used in the filter query. The exception happens in QueryBinder.BindPropertyAccessExpression method.
Reproduce steps
Data Model
The User class in Graph SDK but it can be any othr
EDM (CSDL) Model
https://[graph.microsoft.com/v1.0/$metadata#users](https://graph.microsoft.com/v1.0/$metadata#users)
Request/Response
No request/response. We are using it as stand alone.
Expected behavior
A filtered data set is returned.
Actual behavior
A NullReference exception is thrown when the ApplyTo method is called as it is not able to bind to the dynamic/additional data container on the CLR type.
Additional context
There is no way for us inject a custom implementation of FilterBinder in the stand alone mode.
The text was updated successfully, but these errors were encountered: