Skip to content

[Microsoft.AspNet.OData v7.7.3] Request.ODataProperties().NextLink is always null #2826

Open

Description

@amanswaika

Short summary (3-5 sentences) describing the issue.

We recently upgraded to Microsoft.AspNet.OData v7.7.3 from v7.1.0.
We have a scenario where we manually update a part of @odata.nextLink before returning it.

We fetch the nextLink using Request.ODataProperties().NextLink and make the neccesarry modifications. However, since the upgrade - Request.ODataProperties().NextLink is always returning null even though the final Api response returns the nextLink (just not in our desired format).

Assemblies affected

Microsoft.AspNet.OData v7.7.3

Code sample -

var data = queryOptions.ApplyTo(queryable, odataQuerySettings, this.IgnoredQueryOptions);

var nextLink = queryOptions.Request.ODataProperties().NextLink;

// The above is always null even though all the queryOptions have applied correctly

But the Api response has the next link present -

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions