Edited Issue: Make IActionMethodSelector public - AjaxOnlyAttribute [25]
Currently, Web API contains IActionMethodSelector but unfortunately it's internal. So, you cannot use action method selector or action name selector in Web API. But you can easily create AjaxOnly,...
View ArticleEdited Issue: Implement IODataUrlResolver so that ODataLib can resolve Url...
When doing the following batch request with DataServicesClient:```GeneratedDataServicesClient client = new GeneratedDataServicesClient(serviceUrl);client.Format.UseJson();BatchCustomer customer =...
View ArticleCreated Unassigned: OData $batch sends the wrong response when a request...
Given a $batch request like the following, where the second operation in the changeset fails as this one```POST http://jcalvarro-wsr3:9001/batch/$batch HTTP/1.1DataServiceVersion:...
View ArticleCommented Issue: [Required] should not present users with duplicate errors [590]
See: http://aspnetwebstack.codeplex.com/discussions/396199The implementation change here is to not recognize the [Required] model validator for reference types when doing the value validation.Comments:...
View ArticleEdited Issue: [Required] should not present users with duplicate errors [590]
See: http://aspnetwebstack.codeplex.com/discussions/396199The implementation change here is to not recognize the [Required] model validator for reference types when doing the value validation.
View ArticleEdited Feature: Consider improving the experience for accessing properties in...
Before the changes introduced by $select and $expand, defining custom odata links was reasonably straightforward using EntityInstanceContext.EntityInstance as in the following snippet.```eic =>{...
View ArticleCommented Feature: Consider improving the experience for accessing properties...
Before the changes introduced by $select and $expand, defining custom odata links was reasonably straightforward using EntityInstanceContext.EntityInstance as in the following snippet.```eic =>{...
View ArticleEdited Unassigned: Add Simple WebApi OData query filter mapping [1008]
Add support for mapping of query string name value pairs to a OData $filter expression. This would allow1) Simple queries to be used with OData2) Increaed interoperability with existing urls that are...
View ArticleEdited Issue: Redundant type name serialization in OData JSON light minimal...
When we write the entries for GET http://localhost:50231/Pets/SampleService.Model.BigPet , in JSON light minimal metadata mode, we emit type names for all BigPets. This is redundant as the type of the...
View ArticleClosed 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 Feature: We should open up the configuration.Services to allow user...
Today if one tries to add a custom service to the configuration.Services bag, it will throw exception saying that it does not support unknown services.We should open this up so that people don't have...
View ArticleEdited Issue: Can't unit test code that generates OData links [769]
There's no unit that encapsulates the logic around generating a full OData link, so tests end up integration style. Having an odata link factory abstraction allows unit testing such code.We are putting...
View ArticleEdited Issue: MediaTypeFormatter.SetDefaultContentHeaders doesn't receive the...
ODataFormatter sends different response content type header depending on the type of the object being serialized. For example, serializing a Product might send "application/atom-xml;odata=entry" and...
View ArticleCommented Issue: MediaTypeFormatter.SetDefaultContentHeaders doesn't receive...
ODataFormatter sends different response content type header depending on the type of the object being serialized. For example, serializing a Product might send "application/atom-xml;odata=entry" and...
View ArticleEdited Issue: Add Set* extension methods for all HttpRequestMessage...
For unit testing you often need to setup a full HttpRequestMessage so that conneg can be run in the API controller action. We have Get* extension methods for the properties hanging off of...
View ArticleEdited Issue: Expose async on filters in 4.5 [922]
As we are moving to 4.5 we should also move the attribute filter implementations (see for example AuthorizationFilterAttribute) to expose async in addition to just sync. In v1 we hid async part so well...
View ArticleClosed Unassigned: Microsoft.jQuery.Unobtrusive packages license URL gives...
Version 2.0.30116.0 of the 2 packages Microsoft.jQuery,Unobtrusive.Ajax and Microsoft.jQuery.Unobtrusive.Validation have a license Url that gives NotFound.The Url they contain...
View ArticleEdited Issue: Bundler / minifier not handling end of file comments correctly...
I have noticed that the bundler doesn't handle single line comments at the end of a javascript file correctly (or as would be expected), when the script is bundled and minified. A single line comment...
View ArticleEdited Issue: Null Ref Exception from ODataEntityDeserializer.ReadEntryOrFeed...
To repro the issue, define entity model as:[EntitySet("Security_ArrayModel")][DataServiceKey("ID")] public class Security_ArrayModel{ public int ID { get; set; } public List<string> StringArray {...
View ArticleEdited Issue: Tracing should trace warning not error for...
The default trace writers do not currently special-case HttpResponseException, and therefore trace at TraceLevel.Error. This is confusing, because it means simple user error in the URI will generate an...
View Article