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
ConsumesAttributeTests.cs
ContentNegotiationTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
ControllerFromServicesTests.cs
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
FlushPointTest.cs
FormFileUploadTest.cs
HtmlGenerationTest.cs
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
MvcSampleFixture.cs
MvcSandboxTest.cs
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
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
TagHelpersTest.cs
TempDataTest.cs
UrlResolutionTest.cs
VersioningTests.cs
ViewComponentFromServicesTests.cs
ViewEngineTests.cs
WebApiCompatShimActionResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
WebApiCompatShimActionSelectionTest.cs
WebApiCompatShimBasicTest.cs
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