Граф коммитов

1594 Коммитов

Автор SHA1 Сообщение Дата
davidmatson 9d1be9f479 Add global error handling to web host. 2013-10-15 10:10:55 -07:00
Tian Pan 9bd16da913 Remove Bing SearchBox Helper 2013-10-14 11:43:57 -07:00
davidmatson 58ca0b99fa Incorporate code review feedback. 2013-10-11 16:46:37 -07:00
davidmatson 92c3904493 Incorporate code review feedback. 2013-10-10 15:18:20 -07:00
yaohuang 4bd81365c3 Help Page Improvements: Document Model Data Annotations 2013-10-10 13:59:50 -07:00
davidmatson 1b17f6474d Add global error handling core functionality. 2013-10-10 13:25:25 -07:00
dougbu 3be244b319 Give more detailed error message when a WebAPI filter is added to a MVC global filter collection.
https://aspnetwebstack.codeplex.com/workitem/321
- Update the displayed message as suggested in the bug -- fully qualify the filter type names
- Add new IAuthenticationFilter to the mentioned interfaces
2013-10-10 08:55:46 -07:00
raghuramn 0814580aec Issue 824: NotMapped property can't be add explicitly by model builder 2013-10-09 09:55:28 -07:00
raghuramn ec3bc22029 Issue 984: Redundant type name serialization in OData JSON light minimal
metadata mode
2013-10-09 09:55:00 -07:00
raghuramn f9aefe1f08 791: Support nested property on complex type in $orderby 2013-10-09 09:53:32 -07:00
dougbu e538bb1a3f Address review comment against Commit a20dd5738e
- Lowercase "type" in new exception's Message
2013-10-03 11:14:54 -07:00
dougbu a20dd5738e Better error message when can't construct model for Action
https://aspnetwebstack.codeplex.com/workitem/892
- MissingMethodException often provides a less-than-helpful message; problem here centers on Activator.CreateInstance()
- To avoid compatiblity problems, throw same type of Exception, preserve original Message and stacktrace.
- Fix all instances of the problem in System.Web.Mvc.dll and Microsoft.Web.Mvc.dll
- Activiator.CreateInstance() is called elsewhere in these assemblies but not for types than may lack a parameterless constructor
- Add or update tests covering affected methods

nit: Let VS reorder the System.Web.Mvc.csproj file
2013-10-02 21:19:42 -07:00
phenning ac7e8b52a1 Fix FxCop errors when running CodeAnalysis on Debug builds.
- Remove unused locals in OData
- Remove redundant casting in EdmLibHelpers
- Add Suppression for Thread.Current Principal for unused local
- Use CultureInfo.InvariantCulture when writing out tracing for razor editor traces elapsed time values.
2013-10-02 15:16:52 -07:00
davidmatson b840b182b0 Make external component dependencies stable. 2013-10-02 14:40:06 -07:00
phenning bfba3a5d00 Issue 614: Enable FxCop for System.Net.Http.Formatting.NetCore 2013-10-01 15:28:02 -07:00
davidmatson d6269fa9f3 Fix ExceptionResult status code (fixes bug # 1318). 2013-10-01 13:28:26 -07:00
Yishai Galatzer 46cdc2d2af Fix codeplex bug 1312
System.Web.Razor.TextChange creates a wrong Old Text property

The GetText method was using a property instead of the passed parameter, also added an optimization for the common case of typing a single char (OldText length is always zero)
2013-10-01 10:09:10 -07:00
raghuramn d9dda6880a Issue 797: default odata routing conventions is missing support for url's
generated by WCF DS client

1) mapping POST ~/Customers(42)/Orders to PostToOrders.

2) mapping POST ~/Customers(42)/Ns.SpecialCustomer/SpecialOrders to
PostToSpecialOrdersFromSpecialCustomer

3) mapping PUT/POST to
~/Customers(42)/Ns.SpecialCustomer/$links/SpecialOrders to
CreateLinkToSpecialOrdersFromSpecialCustomer

4) Also, changing links routing convention to route to
CreateLinkTo{navProperty} if that method is declared instead of just
CreateLink.
2013-09-27 16:44:49 -07:00
davidmatson df30237eae Preserve stack trace for ApiController exceptions (fixes #1313). 2013-09-26 10:00:27 -07:00
phenning 082aa21ca8 Update Microsoft.Owin version to latest build 2013-09-26 08:24:41 -07:00
yaohuang 7c7b2bfdb1 896 Set the appropriate BOM type for Help Page .cshtml files.
Fixing the help page build task to output .pp files using UTF8 encoding with BOM (which is what VS does by default).
Part of this bug is actually caused by a known issue in NuGet (see the link below) and will be addressed by the NuGet team.
http://nuget.codeplex.com/workitem/3174
2013-09-25 14:46:13 -07:00
davidmatson f80fa22c62 Fix HttpRoutingDispatcher locating route data (fixes #1290). 2013-09-24 10:53:35 -07:00
davidmatson b13eaf8c94 HttpRequestContext cleanup. 2013-09-23 10:20:53 -07:00
Yishai Galatzer 10f8cbc1f0 Downgrade razor version back to 3.0 2013-09-20 17:16:11 -07:00
Yishai Galatzer d5103619e7 Fix CodePlex 744
Return the display name in an error message if set.
2013-09-19 16:07:14 -07:00
Yishai Galatzer c4365bda11 Fix CodePlex 744
Return the display name in an error message if set.
2013-09-19 14:30:18 -07:00
Yishai Galatzer e3c89f9e68 Update Versions from 5.0 & 3.0 to 5.1 & 3.1 2013-09-18 22:27:41 -07:00
yaohuang 4842985f51 Revert "Revert "1197 Support [ResponseType(typeof(void))] for actions that return an IHttpActionResult with no response content""
This reverts commit 52a73b6ba5.
2013-09-17 10:59:06 -07:00
yaohuang 52a73b6ba5 Revert "1197 Support [ResponseType(typeof(void))] for actions that return an IHttpActionResult with no response content"
This reverts commit 532db0188d.
2013-09-17 08:01:00 -07:00
yaohuang 532db0188d 1197 Support [ResponseType(typeof(void))] for actions that return an IHttpActionResult with no response content 2013-09-16 10:09:05 -07:00
davidmatson b8a4ea9ae7 Remove WebApiAppBuilderExtensions.UseHttpMessageHandler (fixes #1298). 2013-09-16 09:57:08 -07:00
davidmatson f9d741ce5f Examine HttpRequestContext.Principal in AuthorizeAttribute. 2013-09-13 13:13:25 -07:00
davidmatson ed933e4ec4 Incorporate code review feedback. 2013-09-12 18:02:10 -07:00
davidmatson 54f9dcb162 Link request context with host principal (fixes #1294). 2013-09-12 17:24:50 -07:00
davidmatson 96ecfae18e Add remaining unit tests for HttpRequestContext. 2013-09-12 14:26:31 -07:00
davidmatson d9684fbfaf Add unit tests for HttpRequestContext used in HttpControllerDispatcher. 2013-09-12 08:48:08 -07:00
davidmatson f0cec9b979 Add initial unit tests for HttpRequestContext. 2013-09-11 16:46:13 -07:00
Yishai Galatzer ce4e0838ab Remove partial trust tests, they are not needed anymore. 2013-09-10 13:54:31 -07:00
MikeStall 2988875f3a Fix 1284, revert 966.
Actions must have default values specified for their parameters, even if the parameter is optional in the route.
This makes attribute routing consistent with MapHttpRoute().

This removes's HttpDirectRoute's overloaded members. So remove HttpDirectRoute completely. It was just regular HttpRoutes with extra values in the DataTokens. So use a builder method instead of a constructor.
2013-09-10 10:24:05 -07:00
MikeStall 42e01a3dc6 Another way to fix 1282. For Routes directly on a controller, get the controller type directly from route data rather than use namespace disambiguation. 2013-09-06 12:32:41 -07:00
yaohuang 4c15b15381 1273 [MvcAttributeRouting] Route attribute should not be inherited 2013-09-06 10:05:52 -07:00
MikeStall 8080052afc Fix 1282 - MVC, allow attr routing to support 2 controllers with same name in different namespaces. 2013-09-06 09:29:49 -07:00
davidmatson ac071ab831 Incorporate code review feedback. 2013-09-05 15:02:39 -07:00
raghuramn f9de23baef Adding more mvc attribute routing tests 2013-09-05 13:38:55 -07:00
yaohuang 03ffc8b75e 1275 Remove the overloads of MapMvcAttributeRoutes that take controller types 2013-09-05 11:46:54 -07:00
raghuramn c915c7acbc LinkShare helper contains a broken link to a Digg site badge
forgot to run the razor generator tool on the cshtml in earlier checkin.
2013-09-05 11:29:20 -07:00
MikeStall 8fcd6a6d28 Fix for 1269 - methods with route constraints should occur first in route table. 2013-09-05 11:05:17 -07:00
raghuramn c0a541763e 1281: $orderby fails on complex collections 2013-09-05 10:53:45 -07:00
davidmatson b558932f2b Restore request properties support for ApiController unit testing. 2013-09-04 22:20:12 -07:00
raghuramn 9ac5d33fe9 Adding mvc attriubte routing inhertance tests. 2013-09-04 10:58:02 -07:00