nickkin-msft

Results comments of nickkin-msft

I am currently working on a solution for this, should be submitted shortly.

I have implemented this feature. Fork: https://github.com/nickkin-msft/WebApi Commit: https://github.com/nickkin-msft/WebApi/commit/cb7a7b205096d7410323bb6d79f146584cfe1225 Pull Request: https://github.com/OData/WebApi/pull/583

Confirmed locally that https://github.com/xuzhg/WebApi/commit/a955debe022493b9dc5509fb2e6080e9797c0b4e does resolve the regression, looking forward to getting that merged in. Thanks!

Yes, that's the bug. The type is referenced indirectly (a->b->c etc.) from the root entity type that is being configured, however when hitting the endpoint it throws the exception because...

I found that this behavior can be disabled with an option: https://msdn.microsoft.com/en-us/library/system.web.http.odata.query.odataquerysettings.ensurestableordering(v=vs.118).aspx which resolves the problem. You can close this bug. Thanks!

Haven’t tried it. That might work for well-behaved callers, but it wouldn’t prevent anyone (malicious, or who simply don’t know about the bug) from being able to make harmful calls...

It appears this is not a valid workaround for us as paging seems to try to apply operations to the IQueryable (in our case supplied by DocumentDB) which it does...