Go to file
jacalvar f0732e9e21 [Fixes #5038] HTTP Verbs mapping error GET and DELETE
When an action contained an attribute derived from HttpMethodAttribute,
doesn't specify an attribute route and there is also another attribute
extending HttpMethodAttribute that has a route defined on it; we ignored
the HttpMethodAttribute attribute without a defined route when building
the set of action selectors for the method.

This caused the resulting action to be unbounded and to accept requests
for other verbs not associated with it. The root cause of the problem was
that attributes override equality and do a field by field comparison but
ignore fields in the base classes of the type, so if an attribute is part
of a class hierarchy (like Http*Attributes) there might be two different
attributes that get considered equal.

The fix for the problem has been to change using Contains on a couple of
collections (that uses the equals method on the underlying object) and
check for the existence of the attribute on the collection directly by
using reference equality.
2016-08-01 12:49:23 -07:00
samples/MvcSandbox Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
src [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
test [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
tools
.gitattributes
.gitignore
.travis.yml Fix OSX build on Travis. 2016-05-27 14:54:16 -07:00
CONTRIBUTING.md
LICENSE.txt
Mvc.NoFun.sln Revert "Add Visual Studio specific RC1 binaries." 2016-05-16 11:12:24 -07:00
Mvc.sln
NuGet.config Updating NuGet.config 2016-06-27 13:50:15 -07:00
NuGetPackageVerifier.json Revert "Add Visual Studio specific RC1 binaries." 2016-05-16 11:12:24 -07:00
README.md
Settings.StyleCop
appveyor.yml
build.cmd
build.ps1 Updating json files to pin versions and build files to pin KoreBuild 2016-06-27 13:51:10 -07:00
build.sh Updating json files to pin versions and build files to pin KoreBuild 2016-06-27 13:51:10 -07:00
global.json

README.md

ASP.NET Core MVC

AppVeyor: AppVeyor

Travis: Travis

ASP.NET Core 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 Core MVC includes many features that enable fast, TDD-friendly development for creating sophisticated applications that use the latest web standards.

ASP.NET Core MVC in ASP.NET Core 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 Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the Home repo.