Created Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCreated Issue: EnableCors should throw if config has been initialized [937]
EnableCors should throw an exception if the HttpConfiguration has already been locked down due to the first request. Otherwise it will insert a MessageHandler that will not be properly chained with the...
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCommented Feature: Add better support for excluding properties from model...
Currently hard to do because users have to register a custom ModelMetadataProvider. We need an attribute-based way of excluding properties.Comments: A PropertyFilter on ModelBindingContext would also...
View ArticleEdited Issue: Consider improving OData link generation with a fluent api [929]
When generating a link for an OData resource, the current experience is as follows.```Url.ODataLink( new EntitySetPathSegment("People"), new KeyValuePathSegment(key));```Consider improving the link...
View ArticleEdited Issue: Enable all the setup code to be done in the controller rather...
When writing a unit test, the user needs to do setup for objects in several places```HttpConfiguration configuration = new HttpConfiguration();controller.Configuration =...
View ArticleEdited Issue: Enable mocking of ModelState in ApiController [926]
Include a setter for the ModelState property of ApiController so that it can be mocked easily.Make ModelStateDictionary methods virtual to enable mocking them.When trying to test an action that...
View ArticleEdited Issue: Avoid returning null when RouteData is null in...
Assume RouteData is empty instead of returning null in HttpRoute.GetVirtualPath.When trying to test link generation inside ApiController, the route data needs to be set up properly, which involves the...
View ArticleEdited Issue: Put EnableCors under namespace System.Web.Http [913]
The HttpConfiguration extension EnableCors is under namespace System.Web.Http.Cors in recent build. As a result, to enable cors in WebApiConfig you need to include 'using System.Web.Http.Cors'.In...
View ArticleEdited Issue: [CORS] Preflight request to OData endpoint failed because...
Bug #1: Preflight request to OData endpoint failed because ambiguous action methods.ReproOn server, set up a simple CORS supported OData endpoint providing functionality of creating entity. For...
View ArticleEdited Issue: [CORS] Usability concern of allowed headers configuration in...
There are two options here in terms of configuring allowed headers. If the headers array is not set everything is allowed, otherwise __*only*__ headers in the array is allowed. For example for an OData...
View ArticleEdited Issue: [CORS] Put EnableCors under namespace System.Web.Http [913]
The HttpConfiguration extension EnableCors is under namespace System.Web.Http.Cors in recent build. As a result, to enable cors in WebApiConfig you need to include 'using System.Web.Http.Cors'.In...
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCreated Issue: ModelBinder errors (parse) for required action parameters...
``` public class CustomersController : ApiController{ public Customer GetCustomer(int key){ return null;}}```Use the url http://localhost/MyTypes/2886753098675309This should fail to parse as...
View ArticleCreated Issue: Modify AsyncEntitySetController's actions/methods to accept...
Modify AsyncEntitySetController's actions/methods to accept CancellationToken....
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleCommented Issue: OData support for Int64 keys seems to be lacking [936]
OData support for Int64 key seems to be lacking (I also accept I may be doing something wrong)Run:http://localhost/MyTypes(2886753098675309)Result:{"odata.error": {"code": "","message": {"lang":...
View ArticleEdited Issue: ModelBinder errors (parse) for required action parameters...
``` public class CustomersController : ApiController{ public Customer GetCustomer(int key){ return null;}}```Use the url http://localhost/MyTypes/2886753098675309This should fail to parse as...
View Article