aspnetcore/src
Ryan Nowak faba95287e Fix for #3743 - CancellationToken validation
This is a fix for the specific case reported in #3743 and also a few
related cases where the object being validated does not come from user
input.

Because the CancellationToken is bound using the 'empty prefix',
suppressing validation causes the validation system to suppress ALL keys
in the MSD. This will wipe out validation info for other, unrelated model
data. The same can occur for [FromServices], IFormCollection, IFormFile,
and HttpRequestMessage (anythere when MSD key == null and
SuppressValidation == true).

The other change here is related to the [FromBody]. We don't want to
create an entry in the model state for a 'valid' model with the empty
prefix. This can cause the system to miss validation errors. If you end up
in a situation where there's an entry with the empty prefix for an invalid
state, you won't accidentally miss validation errors.
2016-01-29 18:12:19 -08:00
..
Microsoft.AspNetCore.Mvc
Microsoft.AspNetCore.Mvc.Abstractions Support overrides for client-side validation messages 2016-01-29 11:23:57 -08:00
Microsoft.AspNetCore.Mvc.ApiExplorer
Microsoft.AspNetCore.Mvc.Core Fix for #3743 - CancellationToken validation 2016-01-29 18:12:19 -08:00
Microsoft.AspNetCore.Mvc.Cors [Fixes #3979] AuthorizationContext conflicts with type in Microsoft.AspNet.Authorization 2016-01-26 16:27:40 -08:00
Microsoft.AspNetCore.Mvc.DataAnnotations Support overrides for client-side validation messages 2016-01-29 11:23:57 -08:00
Microsoft.AspNetCore.Mvc.Formatters.Json Fix XML docs to pass xml-docs-test. 2016-01-25 14:55:42 -08:00
Microsoft.AspNetCore.Mvc.Formatters.Xml
Microsoft.AspNetCore.Mvc.Localization
Microsoft.AspNetCore.Mvc.Razor Fixing ArgumentOutOfRangeException in ExpressionRewriter 2016-01-29 14:47:09 -08:00
Microsoft.AspNetCore.Mvc.Razor.Host
Microsoft.AspNetCore.Mvc.TagHelpers React to StringTokenizer changes. 2016-01-29 13:42:36 -08:00
Microsoft.AspNetCore.Mvc.ViewFeatures Support overrides for client-side validation messages 2016-01-29 11:23:57 -08:00
Microsoft.AspNetCore.Mvc.WebApiCompatShim