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 Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
AntiforgeryTests.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
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 Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
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 Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
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 Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
DefaultOrderTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
DefaultValuesTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
DirectivesTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ErrorPageTests.cs Use regular PDBs on full desktop when possible 2016-06-09 14:59:38 -07:00
FileResultTests.cs Revert "Remove dangling test workarounds for and mentions of closed bugs" 2016-01-30 00:02:57 -08:00
FiltersTest.cs Added ValueProviderFactories to ResourceFilterExecutingContext 2016-05-20 04:15:07 -07:00
FlushPointTest.cs * Unignore test 2016-02-03 12:03:03 -08:00
FormFileUploadTest.cs [Fixes #4099] Add a functional test for creating a form with a file upload field 2016-02-29 18:13:52 -08:00
HtmlGenerationTest.cs Fixing functional test random failure (#4452) 2016-04-12 10:44:26 -07:00
HtmlHelperOptionsTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
InputFormatterTests.cs Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
InputObjectValidationTests.cs Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
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 Revert "Remove dangling test workarounds for and mentions of closed bugs" 2016-01-30 00:02:57 -08:00
Microsoft.AspNetCore.Mvc.FunctionalTests.xproj Remove project name from output path 2016-03-02 14:39:12 -08:00
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 Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
RazorPageExecutionInstrumentationTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
RazorViewLocationSpecificationTest.cs * Give message correct path. 2016-02-02 11:08:41 -08:00
RemoteAttributeValidationTest.cs Add `[Remote(routeName : "name")]` tests 2016-05-03 12:25:00 -07:00
RequestServicesTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
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 Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
SimpleTests.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
StreamOutputFormatterTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
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 Revert "Remove dangling test workarounds for and mentions of closed bugs" 2016-01-30 00:02:57 -08:00
UrlResolutionTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
VersioningTests.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
ViewComponentFromServicesTests.cs [Fixes #4087] Add AddViewComponentsAsServices() and ServiceBasedViewComponentActivator 2016-04-01 10:55:04 -07:00
ViewEngineTests.cs Reacting to Localization CookieName change 2016-03-04 10:33:50 -08:00
WebApiCompatShimActionResultTest.cs Serialize JSON using camel case by default 2016-06-09 11:58:23 -07:00
WebApiCompatShimActionSelectionTest.cs [Fixes #3874] Null passed as arguments to controller method parameters when no InputFormatter matches 2016-01-28 15:46:17 -08:00
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 Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
XmlDataContractSerializerInputFormatterTest.cs Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
XmlOutputFormatterTests.cs Revert "Move aspnet/External#18 comments into `SkipReason`" 2016-01-30 00:02:36 -08:00
XmlSerializerFormattersWrappingTest.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
XmlSerializerInputFormatterTests.cs Rename AspNet 5 file contents. 2016-01-22 12:18:33 -08:00
project.json Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00