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
When a parameter alias is used as the collection of an in$filter, OData throws an unhandled exception.
Assemblies affected
Possibly all. Observed in ODL 8.1.0 and 8.2.2.
Reproduce steps
varmodel=newEdmModel();varperson=newEdmEntityType("my.namespace","person");person.AddKeys(person.AddStructuralProperty("id",EdmPrimitiveTypeKind.String));model.AddElement(person);varcontainer=newEdmEntityContainer("my.namespace","container");model.AddElement(container);container.AddEntitySet("people",person);varparser=newODataUriParser(model,newUri("""/people?$filter=id in @ids&@ids=["foo"]""",UriKind.Relative)){Resolver=newUnqualifiedODataUriResolver(){EnableCaseInsensitive=true},UrlKeyDelimiter=ODataUrlKeyDelimiter.Slash,};parser.Settings.MaximumExpansionDepth=2;parser.ParsePath();varfilter=parser.ParseFilter();
Expected result
An ODataException if this is not intended to be supported, or the same behavior as when parameter aliases are not used.
When a parameter alias is used as the collection of an
in
$filter
, OData throws an unhandled exception.Assemblies affected
Possibly all. Observed in ODL 8.1.0 and 8.2.2.
Reproduce steps
Expected result
An
ODataException
if this is not intended to be supported, or the same behavior as when parameter aliases are not used.Actual result
Unhandled exception thrown by ODL:
The text was updated successfully, but these errors were encountered: