Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Unassigned: Attempting to bind multiple values to a single valued property results in incorrect assignment [1563]

$
0
0
This bug vaguely follows from investigating into https://aspnetwebstack.codeplex.com/workitem/1493. When multiple request values for the same parameter are sent by the client, the model binder attempts to convert the entire collection to the action parameter value instead of picking the first request value.

Repro scenario

public IHttpActionResult Get([FromUri]string foo)

For the query string ?foo=bar&foo=qux
Expected:
foo = "bar"

Actual:
foo = "(Collection)"




Viewing all articles
Browse latest Browse all 7215

Trending Articles