aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
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
..
ApplicationModel [Design] Split up MvcRouteHandler 2016-06-07 08:12:47 -07:00
ApplicationParts
Authorization
Builder
Controllers
DependencyInjection
Filters
Formatters Alter content negotiation algorithm so that it can be configured (via 2016-06-07 16:12:36 -05:00
Infrastructure Alter content negotiation algorithm so that it can be configured (via 2016-06-07 16:12:36 -05:00
Internal [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
ModelBinding Fix for #4666 - reduce modelbinders created 2016-06-06 09:01:51 -07:00
Properties
Routing [Fixes #4506] Move and rename ActionDescriptor.Name to ControllerActionDescriptor.ActionName 2016-05-31 23:13:20 -07:00
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs
ChallengeResultTest.cs
ConsumesAttributeTests.cs
ContentResultTest.cs
ControllerBaseTest.cs
CreatedAtActionResultTests.cs
CreatedAtRouteResultTests.cs
CreatedResultTests.cs
EmptyResultTests.cs
FileContentResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
FileResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
FileStreamResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs
HttpNotFoundResultTests.cs
HttpOkObjectResultTest.cs
HttpOkResultTest.cs
HttpStatusCodeResultTests.cs
HttpUnauthorizedResultTests.cs
LocalRedirectResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
MediaTypeCollectionTest.cs
Microsoft.AspNetCore.Mvc.Core.Test.xproj
MvcOptionsTest.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs
PhysicalFileResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
ProducesAttributeTests.cs
RedirectResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
RedirectToActionResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
RedirectToRouteResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
RequireHttpsAttributeTests.cs
ResponseCacheAttributeTest.cs
SerializableErrorTests.cs
SignInResultTest.cs
SignOutResultTest.cs
TestApplicationPart.cs
TestBufferingFeature.cs
TestFeatureProvider.cs
VirtualFileResultTest.cs [Fixes #4207] Review IActionResult classes and add facades as necessary. 2016-05-31 22:46:18 -07:00
project.json Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00