Skip to content

OData template should not be quoting key segments #502

Closed
@hippiehunter

Description

@hippiehunter

in src\Common.OData.ApiExplorer\AspNet.OData\Routing\ODataRouteBuilder.cs : ODataRouteBuilder.ExpandParameterTemplate there is code to handle quoting certain data types but that only makes sense when generating a url. OData templates don't put quotes around the parameter. Ive attempted to follow back the references to this function and I don't seen any obvious uses of it where it should be quoting the parameter names.

Surrounding the parameter template with quotes causes an ODataException to be thrown when the template is parsed later on.

see @KanishManuja-MS reply OData/WebApi#1791

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions