Skip to content
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

ODataUrlValidator.ValidateProperties null reference exception on dynamic properties #368

Open
albuckle opened this issue May 9, 2024 · 0 comments

Comments

@albuckle
Copy link

albuckle commented May 9, 2024

ODL returns a NullReferenceException when validating URLs with dynamic properties for deprecation.

Sample repro uri: graph.microsoft.com/v1.0/drives('<key>')/items('<key>')/<dynamic>

Stack trace:
at Microsoft.OData.UriParser.Validation.ODataUrlValidator.ValidateProperties(IEdmType edmType, ODataUrlValidationContext context) in D:\a\1\s\src\Microsoft.OData.Core\UrlValidation\ValidationEngine\ODataUrlValidator.cs:line 444
at Microsoft.OData.UriParser.Validation.ODataUrlValidator.ValidateSelectExpandClause(IEdmType segmentType, SelectExpandClause selectExpand, ODataUrlValidationContext validationContext) in D:\a\1\s\src\Microsoft.OData.Core\UrlValidation\ValidationEngine\ODataUrlValidator.cs:line 249
at Microsoft.OData.UriParser.Validation.ODataUrlValidator.ValidateUrl(ODataUri odataUri, IEnumerable`1& validationMessages) in D:\a\1\s\src\Microsoft.OData.Core\UrlValidation\ValidationEngine\ODataUrlValidator.cs:line 66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant