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
There is a bug in the way we match URI parameters to function parameters. For case-insensitive matching, the same parameter in the URI can be used to match with multiple parameters in the function's uri. It is uncommon for functions to have the same name for parameters but it is possible.
Which assemblies and versions are known to be affected e.g. OData .Net lib 7.x
ODL 7.x
Reproduce steps
Add a function that takes two parameters that have the same name but only differ in case. Specify only one parameter in the request. The function will be considered a match if it is the only function.
Expected result
The function should not be considered a match.
Actual result
The function is considered a match.
The text was updated successfully, but these errors were encountered:
KanishManuja-MS
changed the title
Parameter matching for function has an issue
Parameter matching for resolving function overloads has an issue
Jan 28, 2020
There is a bug in the way we match URI parameters to function parameters. For case-insensitive matching, the same parameter in the URI can be used to match with multiple parameters in the function's uri. It is uncommon for functions to have the same name for parameters but it is possible.
odata.net/src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs
Line 1819 in c8a25ab
Assemblies affected
Which assemblies and versions are known to be affected e.g. OData .Net lib 7.x
ODL 7.x
Reproduce steps
Add a function that takes two parameters that have the same name but only differ in case. Specify only one parameter in the request. The function will be considered a match if it is the only function.
Expected result
The function should not be considered a match.
Actual result
The function is considered a match.
The text was updated successfully, but these errors were encountered: