Go to file
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
samples Update `TagHelperSampleTest` to avoid failures due to statefulness of the service 2016-01-26 10:50:51 -08:00
src Fix for #3743 - CancellationToken validation 2016-01-29 18:12:19 -08:00
test Fix for #3743 - CancellationToken validation 2016-01-29 18:12:19 -08:00
tools
.gitattributes
.gitignore
.travis.yml Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
Mvc.sln Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
NuGet.config
NuGetPackageVerifier.json Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
README.md
Settings.StyleCop
appveyor.yml
build.cmd
build.sh
global.json
makefile.shade

README.md

ASP.NET MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup for enjoyable, agile development. ASP.NET MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET MVC in ASP.NET 5 includes support for building web pages and HTTP services in a single aligned framework that can be hosted in IIS or self-hosted in your own process.

Related community projects:

This project is part of ASP.NET 5. You can find samples, documentation and getting started instructions for ASP.NET 5 at the Home repo.