autohaus icon indicating copy to clipboard operation
autohaus copied to clipboard

OData services nextLink not correct when using $skip, $top or $orderby

Open dstomphorst opened this issue 11 years ago • 0 comments

The OData service generates an invalid odata.nextLink.

When calling for example: http://autohaus/odata/Cars?$inlinecount=allpages&$filter=BodyType%20eq%20'convertible'&$skip=40

The next link is: http://autohaus/odata/Cars?$inlinecount=allpages&$filter=BodyType%20eq%20'convertible'&$skip=20

The $skip parameter is incorrect.

This is probably because $skip, $top and $orderby are removed by the BuildCustomRequest method and therefore not used when rendering the nextLink.

dstomphorst avatar Jan 02 '14 08:01 dstomphorst