aspnetcore/test/Microsoft.AspNetCore.Mvc.Fu...
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
..
compiler/resources React to aspnet/Razor#705 2016-05-27 12:00:01 -07:00
AntiforgeryTestHelper.cs
AntiforgeryTests.cs
ApiExplorerTest.cs Suppress default status code response type in api descriptions when explicit response types have been provided 2016-06-09 12:07:52 -07:00
ApplicationModelTest.cs
BasicTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
CompilationOptionsTests.cs Migrate tests, tools and samples to portable 2016-04-18 17:20:15 -07:00
ConsumesAttributeTests.cs
ContentNegotiationTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
ControllerFromServicesTests.cs [Fixes #3732] Simplify controller discovery. 2016-03-31 10:50:26 -07:00
CorsTests.cs
DefaultOrderTest.cs
DefaultValuesTest.cs
DirectivesTest.cs
ErrorPageTests.cs Use regular PDBs on full desktop when possible 2016-06-09 14:59:38 -07:00
FileResultTests.cs
FiltersTest.cs Added ValueProviderFactories to ResourceFilterExecutingContext 2016-05-20 04:15:07 -07:00
FlushPointTest.cs
FormFileUploadTest.cs
HtmlGenerationTest.cs Fixing functional test random failure (#4452) 2016-04-12 10:44:26 -07:00
HtmlHelperOptionsTest.cs
InputFormatterTests.cs
InputObjectValidationTests.cs
JsonOutputFormatterTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
JsonResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
LinkGenerationTests.cs
Microsoft.AspNetCore.Mvc.FunctionalTests.xproj
MvcEncodedTestFixtureOfT.cs Reacting to Hosting changes 2016-03-15 10:50:53 -07:00
MvcSampleFixture.cs Allow functional tests with content to run from VS 2016-05-19 09:04:15 -07:00
MvcSandboxTest.cs Move samples to Entropy 2016-05-02 10:06:17 -07:00
MvcTestFixture.cs Fix resource generation to work with dotnet test 2016-05-23 15:55:14 -07:00
OutputFormatterTest.cs
RazorPageExecutionInstrumentationTest.cs
RazorViewLocationSpecificationTest.cs
RemoteAttributeValidationTest.cs Add `[Remote(routeName : "name")]` tests 2016-05-03 12:25:00 -07:00
RequestServicesTest.cs
RespectBrowserAcceptHeaderTests.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
RouteDataTest.cs [Design] Split up MvcRouteHandler 2016-06-07 08:12:47 -07:00
RoutingTests.cs [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
SerializableErrorTests.cs
SimpleTests.cs
StreamOutputFormatterTest.cs
TagHelpersFromServicesTest.cs [Fixes #4087] Add support for AddTagHelpersAsServices() 2016-04-02 10:32:48 -07:00
TagHelpersTest.cs Fix FormTagHelper to set flag indicating generation of AntiforgeryToken 2016-05-20 04:29:01 -07:00
TempDataTest.cs
UrlResolutionTest.cs
VersioningTests.cs
ViewComponentFromServicesTests.cs [Fixes #4087] Add AddViewComponentsAsServices() and ServiceBasedViewComponentActivator 2016-04-01 10:55:04 -07:00
ViewEngineTests.cs
WebApiCompatShimActionResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs Migrate tests, tools and samples to portable 2016-04-18 17:20:15 -07:00
WebApiCompatShimParameterBindingTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
XmlDataContractSerializerFormattersWrappingTest.cs
XmlDataContractSerializerInputFormatterTest.cs
XmlOutputFormatterTests.cs
XmlSerializerFormattersWrappingTest.cs
XmlSerializerInputFormatterTests.cs
project.json Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00