aspnetcore/test
Ryan Nowak 1631ca1a47 Fix for #1681 - Model state errors are wrong with attributes like [FromHeader]
The issue here is that a model state error is added with the model name
'doubled'. This is on a fairly obscure code path and the code dates back
to the original WSR git checkin of webapi. There are no wsr tests that
verify this behavior.

The cause here is that our 'greedy' model binders (like
FromHeaderModelBinder) return 'true' whether or not they successfully
found a model, because they don't want other model binders to run.

This also has an effect on the validation system. That means that
validators will run and attempt to validate the model (which may be null).
That's that rare case where we get to this code path.
2014-12-10 14:03:51 -08:00
..
Microsoft.AspNet.Mvc.Core.Test Adding Support for TryUpdateModel using include expressions and predicate. 2014-12-05 17:28:43 -08:00
Microsoft.AspNet.Mvc.FunctionalTests Fix for #1681 - Model state errors are wrong with attributes like [FromHeader] 2014-12-10 14:03:51 -08:00
Microsoft.AspNet.Mvc.HeaderValueAbstractions.Test
Microsoft.AspNet.Mvc.ModelBinding.Test Fix for #1681 - Model state errors are wrong with attributes like [FromHeader] 2014-12-10 14:03:51 -08:00
Microsoft.AspNet.Mvc.Razor.Host.Test
Microsoft.AspNet.Mvc.Razor.Test
Microsoft.AspNet.Mvc.TagHelpers.Test Fix #1618, Add asp- prefix to custom attributes of MVC tag helpers 2014-12-05 15:48:33 -08:00
Microsoft.AspNet.Mvc.Test Fix for #1671 - Adding [FromHeader] attribute 2014-12-08 11:42:57 -08:00
Microsoft.AspNet.Mvc.WebApiCompatShimTest
WebSites Fix for #1671 - Adding [FromHeader] attribute 2014-12-08 11:42:57 -08:00