Skip to content

ODataLib Client fails to deserialize payload with @odata.context relative URL starting with ../ #2977

Open
@Devmawi

Description

@Devmawi

I have a project where I want to integrate a SAP CAPs with a .NET OData Client.
Querying and write operations called from the data service context like DataServiceContext.AddToSomeEntity(newEntityInstance) are not a problem. But if I want to insert related entities I got an error while the response is parsed, because the context url looks like @odata.context": "../$metadata#SomeEntity.

And the code changes for the issue ODataLib Client fails to deserialize payload with @odata.context relative URL seems only to fix the case if url starts with $metadata.

Used Microsoft.OData.Client version 7.21.1.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions