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
{"error":{"code":"","message":"The query specified in the URI is not valid. The given model does not contain the type 'Microsoft.AspNetCore.OData.Query.Wrapper.NoGroupByAggregationWrapper'.","details":[],"innererror":{"message":"The given model does not contain the type 'Microsoft.AspNetCore.OData.Query.Wrapper.NoGroupByAggregationWrapper'.","type":"Microsoft.OData.ODataException","stacktrace":" at Microsoft.AspNetCore.OData.Query.Expressions.QueryBinderContext..ctor(IEdmModel model, ODataQuerySettings querySettings, Type clrType) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\Expressions\\QueryBinderContext.cs:line 60\r\n at Microsoft.AspNetCore.OData.Query.OrderByQueryOption.ApplyToCore(IQueryable query, ODataQuerySettings querySettings) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\Query\\OrderByQueryOption.cs:line 253\r\n at Microsoft.AspNetCore.OData.Query.OrderByQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\Query\\OrderByQueryOption.cs:line 216\r\n at Microsoft.AspNetCore.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\ODataQueryOptions.cs:line 429\r\n at Microsoft.AspNetCore.OData.Query.EnableQueryAttribute.ApplyQuery(IQueryable queryable, ODataQueryOptions queryOptions) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\EnableQueryAttribute.cs:line 510\r\n at Microsoft.AspNetCore.OData.Query.EnableQueryAttribute.ExecuteQuery(Object responseValue, IQueryable singleResultCollection, ControllerActionDescriptor actionDescriptor, HttpRequest request) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\EnableQueryAttribute.cs:line 473\r\n at Microsoft.AspNetCore.OData.Query.EnableQueryAttribute.OnActionExecuted(ActionExecutedContext actionExecutedContext, Object responseValue, IQueryable singleResultCollection, ControllerActionDescriptor actionDescriptor, HttpRequest request) in C:\\Users\\andrey.kliuiko\\Downloads\\AspNetCoreOData-8.0.12\\src\\Microsoft.AspNetCore.OData\\Query\\EnableQueryAttribute.cs:line 308"}}}
Note that such error can be caught when either Server pagination is enabled [EnableQuery(PageSize = 5)] or Client one is used by sending $top=5 in Request Query parameters.
Seems like, OrderBy option is set by default when Stable sort is enabled and above parameters are used.
Issue #420 may fix the groupBy queries, but no groupBy ones still don't work.
There're quite many queries with such options used in our project, so this bug is very frustrating.
Downgrading to 8.0.4 and below IS NOT AN OPTION.
Looking forward for advice.
The text was updated successfully, but these errors were encountered:
Looks like, it's a long story from issue #420 which appears to be partially fixed but still not working for Client/Server side pagination enabled.
Our project settings:
It's reproducible on ODataRoutingSample: ASP.NET Core OData sample project.
Requests:
Request 1 works as expected:
Request 2 works as expected:
Request 3 works as expected:
Request 4 fails with error:
Note that such error can be caught when either Server pagination is enabled
[EnableQuery(PageSize = 5)]
or Client one is used by sending$top=5
in Request Query parameters.Seems like, OrderBy option is set by default when Stable sort is enabled and above parameters are used.
Issue #420 may fix the groupBy queries, but no groupBy ones still don't work.
There're quite many queries with such options used in our project, so this bug is very frustrating.
Downgrading to 8.0.4 and below IS NOT AN OPTION.
Looking forward for advice.
The text was updated successfully, but these errors were encountered: