aspnetcore/test/WebSites
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
..
ApiExplorerWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ApplicationModelWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
BasicWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ControllersFromServicesClassLibrary Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ControllersFromServicesWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
CorsWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
ErrorPageMiddlewareWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
FilesWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
FiltersWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
FormatterWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
HtmlGenerationWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
Microsoft.AspNetCore.Mvc.TestConfiguration Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
RazorPageExecutionInstrumentationWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
RazorWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
RoutingWebSite [Fixes #5038] HTTP Verbs mapping error GET and DELETE 2016-08-01 12:49:23 -07:00
SimpleWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
TagHelpersWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
UserClassLibrary Updating json files to pin versions and build files to pin KoreBuild 2016-06-27 13:51:10 -07:00
VersioningWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
WebApiCompatShimWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00
XmlFormattersWebSite Pin repo version to 1.0.1 2016-07-26 12:09:57 -07:00