As of right now, every time the user calls EntitySetController.QueryOptions we create a new instance of ODataQueryOptions<T>.
This causes some problems when the user calls it several times and ma...
Id #1061 | Release:
None
| Updated: Today at 5:38 PM by jacalvar | Created: Today at 5:38 PM by jacalvar
For the following action, we are currently displaying parameter info(attached an snapshot image) in help page:
public IEnumerable<string> Get(HttpRequestMessage request)
{
return new string[] { "v...
Id #1060 | Release:
None
| Updated: Today at 5:00 PM by kichalla | Created: Today at 5:00 PM by kichalla
The said attribute is new in .net 4.5
We should consider obsoleting out own FileExtensions attribute if the new attribute can be made to work with instances of HttpPostedFileBase (it is currently...
Id #1059 | Release:
None
| Updated: Today at 4:42 PM by eilonlipton | Created: Mon at 10:28 PM by kenegozi
MVC currently bundles version 1.10 from September 2012, the latest is 1.11.1 from March 2013.
Id #1058 | Release:
v5.0 RTM
| Updated: Mon at 10:17 PM by kenegozi | Created: Mon at 10:17 PM by kenegozi
The JQuery Validation plugin is normally bundled with a file named additional-methods.js that adds some more validation methods to the basic ones that are in the plugin.
Two of which, 'accept' (f...
Id #1057 | Release:
None
| Updated: Today at 4:43 PM by eilonlipton | Created: Mon at 10:14 PM by kenegozi
Document that IValueProvider.GetValue() returns null if the exact key is not found.
Id #1056 | Release:
None
| Updated: Mon at 9:25 PM by binki | Created: Mon at 9:25 PM by binki
Currently the WebAPI OData package has a dependency on ODataLib >= 5.5.0-alpha2, however if you use ODataLib 5.5.0-rc1 everything breaks.
The MyGet dependency value should probably be set to =5.5...
Id #1055 | Release:
v5.0 Preview
| Updated: Fri at 10:39 PM by yishaigalatzer | Created: Fri at 12:14 PM by Omar007
Biggest adoption blockers identified so far are:
Potential null refs when computing URIs
Doesn't throw when required keys are missing from the environment, or when the environment has the wrong ty...
Id #1054 | Release:
v5.0 RTM
| Updated: Fri at 10:17 PM by yishaigalatzer | Created: Fri at 12:59 AM by youssefm
After installing CORS package, the current behavior is: The handlers config is one line
<handlers><remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /><remove name="ExtensionlessUrlHandler-IS...
Id #1053 | Release:
v5.0 RTM
| Updated: Fri at 10:03 PM by yishaigalatzer | Created: Thu at 9:59 PM by hongyes
When applying the following properties to a model:
[Required(ErrorMessage = "Email is required")]
[RegularExpression(RegularExpressions.Email, ErrorMessage = "Email is not valid")]
[DataType(DataTy...
Id #1051 | Release:
vNext
| Updated: Fri at 10:02 PM by yishaigalatzer | Created: May 15 at 2:51 AM by maxtoroq
This is reported by a customer. See more details here: https://aspnetwebstack.codeplex.com/discussions/441725#editor
Repro attached.
Id #1050 | Release:
v5.0 RTM
| Updated: Fri at 9:40 PM by yishaigalatzer | Created: May 15 at 12:04 AM by yaohuang
I checked with OData formatter and there the order is maintained as expected.
Request(note the order of properties):
http://localhost:63523/api/Categories?$top=3&$select=Description,CategoryName...
Id #1049 | Release:
v5.0 RTM
| Updated: Fri at 9:32 PM by yishaigalatzer | Created: May 14 at 8:30 PM by kichalla
Given the following model:
public class JsonSelectCustomer
{
public int Id { get; set; }
public string Name { get; set; }
public virtual IList<JsonSelectOrder> JsonSelectOrders { get; s...
Id #1048 | Release:
v5.0 RTM
| Updated: Fri at 9:30 PM by yishaigalatzer | Created: May 14 at 6:22 PM by jacalvar
This is a issue from fuzzing test, but it's not a security issue.
To repro the issue, consume the attached file and build HttpContent by code:
public bool ConsumeFuzzedFile(string fuzzedFile, Exc...
Id #1046 | Release:
v5.0 RTM
| Updated: May 14 at 5:12 PM by eilonlipton | Created: May 11 at 5:46 PM by hongyes
OData and HelpPage areas are effected by this:
OData
Error:
{"Message":"An error has occurred.","ExceptionMessage":"Cannot create an EDM model as the action 'Get' on controller 'Customers' has ...
Id #1045 | Release:
v5.0 RTM
| Updated: May 14 at 5:11 PM by eilonlipton | Created: May 10 at 5:39 PM by kichalla
Build - May 8th
Here is my model
public class ValidationModel
{
public int IntReq { get; set; }
[Required]
public string StrNotReqAndDMIsReq { get; set; }
}
My request
var formUrlEncodedB...
Id #1044 | Release:
v5.0 RTM
| Updated: May 14 at 5:09 PM by eilonlipton | Created: May 10 at 6:26 AM by kirthik
Url
/api/passos?$expand=ProximoPasso&$select=Nome,ProximoPasso/Nome
Code
public abstract class EntityNome : IEntity
{
public int Id { get; set; }
public string Nome { get; set; }
}
pub...
Id #1043 | Release:
v5.0 RTM
| Updated: May 14 at 5:15 PM by eilonlipton | Created: May 10 at 5:06 AM by Ridermansb
Due to FormUrlEncodedContent's use of Uri.EscapeDataString() internally, it is unable to post values exceeding ~32k in length; Uri.EscapeDataString() is documented to throw UriFormatException if th...
Id #1042 | Release:
v5.0 RTM
| Updated: May 14 at 5:17 PM by eilonlipton | Created: May 10 at 12:27 AM by nitzmahone
Right now, if you use QueryableAttribute and have syntax errors in your query string, you get back a 400 with error message that says "The query specified in the URI is not valid.". It is right but...
Id #1041 | Release:
v5.0 RTM
| Updated: May 14 at 5:18 PM by eilonlipton | Created: May 9 at 8:02 PM by raghuramn
public override SingleResult<Customer> GetCustomer(int key)
{
return SingleResult.Create(Enumerable.Empty<Customer>());
}
Id #1040 | Release:
v5.0 Preview
| Updated: Mon at 9:49 PM by kenegozi | Created: May 9 at 5:38 PM by raghuramn
Discussion at https://aspnetwebstack.codeplex.com/discussions/398611
Error received is
Only a top-level feed can have the 'ODataFeed.Count' property value specified. Expanded links do not sup...
Id #1037 | Release:
v5.0 Preview
| Updated: May 10 at 6:09 AM by raghuramn | Created: May 8 at 9:38 PM by raghuramn
Repro sample : FileUploadSample (file://KK-MC2/FileUploadSample)
I have a simple custom buffer selector where UseBufferedInputStream returns true.
When I try to upload a 2GB fails, I am seeing ...
Id #1036 | Release:
v5.0 RTM
| Updated: May 14 at 5:27 PM by eilonlipton | Created: May 8 at 9:19 PM by kirthik
I'm having an issue with ControllerDescriptor.ControllerName. It's either poorly documented, or it doesn't properly do what it says it does.
I've been using ControllerDescriptor instances in spo...
Id #1035 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: May 8 at 8:44 PM by rossisdead
The (?i) feature of .net regex parsing is non-standard and not supported in javascript. This means that if you use a regexp such as
[RegularExpression(@"(?i)[a-z0-9][a-z0-9_.-]+[a-z0-9]", ErrorM...
Id #1034 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: May 8 at 2:47 AM by tilovell09
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.1
DataServiceVersion: 1.0;NetFx
MaxDataS...
Id #1033 | Release:
v5.0 Preview
| Updated: Thu at 7:50 PM by yaohuang | Created: May 6 at 9:31 PM by jacalvar
When doing the following batch request with DataServicesClient:
GeneratedDataServicesClient client = new GeneratedDataServicesClient(serviceUrl);
client.Format.UseJson();
BatchCustomer customer = c...
Id #1032 | Release:
v5.0 Preview
| Updated: Sat at 12:58 AM by yaohuang | Created: May 6 at 5:43 PM by jacalvar
Whenever I create an API, sometimes, I do not want a website associated with it. Please add a web API project type without Scripts, Views, Models and so on. Just add the ValuesController along with...
Id #1031 | Release:
v5.0 RTM
| Updated: May 14 at 5:20 PM by eilonlipton | Created: May 5 at 6:54 AM by melech
We have a MVC 4 website using windows authentication and need to pass the logged in user's credentials to the Web API service we're calling. This works using WebClient, but we're unable to get the...
Id #1030 | Release:
vNext
| Updated: May 14 at 5:24 PM by eilonlipton | Created: May 3 at 6:23 PM by midget7j
Model is as follows,
public class CustomersContext : DbContext
{
public DbSet<Customer> Customers { get; set; }
public DbSet<Order> Orders { get; set; }
}
public class Customer
{
publ...
Id #1028 | Release:
v5.0 RTM
| Updated: May 7 at 5:26 PM by eilonlipton | Created: May 1 at 6:54 PM by raghuramn
Given an entityset with an Entity that has an action associated to it, when an odata client issues the following query:
BaseUrl/prefix/Customers?$select=Container.* the service should return the ...
Id #1027 | Release:
v5.0 RTM
| Updated: May 7 at 5:28 PM by eilonlipton | Created: May 1 at 12:33 AM by jacalvar
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...
Id #1026 | Release:
v5.0 Preview
| Updated: May 9 at 5:59 PM by raghuramn | Created: Apr 30 at 6:35 PM by hongyes
Scenario: Use Web API request batching on Owin.
Our DefaultHttpBatchHandler requires us to supply the HttpServer instance to it, so I cannot use the 'UseWebApi' extension here. So, I am using the...
Id #1025 | Release:
v5.0 RTM
| Updated: May 6 at 8:41 PM by eilonlipton | Created: Apr 30 at 6:24 PM by kichalla
DefaultBodyModelValidator.ValidationContext.Visited is a HashSet<object> used to detect and avoid cycles in object graphs during validation. It uses Object equality rather than reference equality. ...
Id #1024 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 30 at 6:18 PM by raghuramn
Before the changes introduced by $select and $expand, defining custom odata links was reasonably straightforward using EntityInstanceContext.EntityInstance as in the following snippet.
eic =>
{
Der...
Id #1023 | Release:
v5.0 RTM
| Updated: May 7 at 5:30 PM by eilonlipton | Created: Apr 29 at 11:03 PM by jacalvar
Currently in webapi self host scenario, we can set MaxReceivedMessageSize and ReceiveTimeout properties but we do not have a way to set it when using katana self host.
I filed a bug in Katana re...
Id #1022 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 29 at 10:39 PM by kirthik
public SingleResult<Customer> GetCustomers(int id)
{
return new SingleResult<Customer>(_db.Customers.Where(c => c.ID == id));
}
Requesting the URL ~/Customers(42) gives back a...
Id #1021 | Release:
v5.0 Preview
| Updated: Apr 29 at 11:09 PM by raghuramn | Created: Apr 29 at 5:46 PM by raghuramn
EntitySetController currently returns an IQueryable<T> for its Get() function. When supplying the $select query, it'll throw an ArgumentException stating that it is unable to convert the SelectExpa...
Id #1020 | Release:
v5.0 Preview
| Updated: May 4 at 9:10 PM by raghuramn | Created: Apr 29 at 12:19 PM by Omar007
Facebook release a cookie named "fbsr_##APPID##" to store the signed request when using the Javascript SDK.
Why don't you update the FacebookRequestHelpers.GetSignedRequest method to search also i...
Id #1019 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 29 at 10:56 AM by Dunadan
This will allow a REST API to be self documenting for all inputs and outputs when applied on API functions.
Example usage:
Http Headers
[RequestHeaderDescription(Name = "X-Auth-Token", Descrip...
Id #1018 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 28 at 10:11 PM by neutrinoemission
We include the properties that the client has asked for (thorugh $select and $expand) and the entity keys in the projection expression we generate in the SelectExpandBinder.
If people customize t...
Id #1017 | Release:
v5.0 RTM
| Updated: May 2 at 10:19 PM by eilonlipton | Created: Apr 28 at 8:11 AM by raghuramn
Now that we have $expand support, we should add support for server-driven paging for expanded feeds.
Id #1016 | Release:
v5.0 RTM
| Updated: May 2 at 10:28 PM by eilonlipton | Created: Apr 28 at 8:06 AM by raghuramn
Consider adding back compat support by trying to lazily initialize this property from EntityInstanceContext.EdmObject.
Now that we support $select and $expand, we optimize the query that we gener...
Id #1015 | Release:
v5.0 RTM
| Updated: May 2 at 10:17 PM by eilonlipton | Created: Apr 28 at 8:05 AM by raghuramn
IEdmObject right now tracks entity instances only which are not nullable. Once, we add support for IEdmObject with complex types and collections, we have to figure out a way to represent null value...
Id #1014 | Release:
v5.0 RTM
| Updated: May 2 at 10:35 PM by eilonlipton | Created: Apr 28 at 7:29 AM by raghuramn
1) Create a new ASP.NET Web Pages site
2) Under ~\App_Code\Bar, create a helper file Foo.cshtml
3) Invoke the helper from a page as Bar.Foo.SomeHelperFunction()
4) Rename the Bar folder to inclu...
Id #1013 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 27 at 1:53 AM by pranavkm
The specific problem happens when debugging unit test with Visual Studio. VS unit test will use some VS.Diagnostic.ServiceModelSlim assembly which will host a wcf service on the debugging process t...
Id #1012 | Release:
v5.0 RTM
| Updated: May 14 at 5:32 PM by eilonlipton | Created: Apr 26 at 7:21 PM by hongyes
When a batch request is received in Web API, this request is spawn into multiple requests. When these requests are being executed one by one, there is a possibility that one of the request's proces...
Id #1011 | Release:
v5.0 Preview
| Updated: May 3 at 11:30 PM by yaohuang | Created: Apr 25 at 9:54 PM by kichalla
Currently, there is no support for spatial data types in Web API OData. Consider adding support for this as it makes impossible to develop any service that has to deal with spatial data.
Id #1010 | Release:
v5.0 RTM
| Updated: May 1 at 8:25 PM by yishaigalatzer | Created: Apr 25 at 9:00 PM by jacalvar
Add support for mapping of query string name value pairs to a OData $filter expression.
This would allow
1) Simple queries to be used with OData
2) Increaed interoperability with existing urls...
Id #1008 | Release:
v5.0 RTM
| Updated: May 7 at 5:32 PM by eilonlipton | Created: Apr 23 at 8:00 PM by garchibald
If a user tries to host a message handler like this with OWIN:
public class MyHandler : HttpMessageHandler
{
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, Cance...
Id #1007 | Release:
v5.0 Preview
| Updated: Thu at 10:57 PM by youssefm | Created: Apr 22 at 7:19 PM by youssefm
To make the scenario of integrating the recently added HTTP batching function with CORS work, following setting up is required.
'''
var config = GlobalConfiguration.Configuration;
config.Route...
Id #1006 | Release:
v5.0 RTM
| Updated: May 6 at 8:52 PM by eilonlipton | Created: Apr 22 at 6:04 PM by trdai
In the following scenario, the Get() action on ReproController, which is decorated with an attribute route is not being added to the route collection.
On the other hand, the Get() action on the ...
Id #1005 | Release:
v5.0 RTM
| Updated: May 2 at 9:08 PM by yishaigalatzer | Created: Apr 20 at 7:31 PM by kichalla
The "Documentation" property in the ApiDescription and ApiParameterDescription should be expanded to include more XmlComment tags than just "<summary>".
Specifically, it should at least include th...
Id #1004 | Release:
v5.0 RTM
| Updated: May 2 at 9:13 PM by yishaigalatzer | Created: Apr 20 at 9:07 AM by petteroe
If my Web API application is going to return an error to a client, I want to know about it.
I want to set up something like ELMAH to notify me when the problem occurs, and I want full details of ...
Id #1001 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 19 at 3:05 AM by jdaley
The FormDataCollectionExtensions.ReadAs() extension methods should have an additional overload that accepts an HttpActionContext.
The current versions create a new HttpConfiguration() and synthes...
Id #999 | Release:
v5.0 Preview
| Updated: May 12 at 2:51 PM by kamehrot | Created: Apr 18 at 6:16 PM by roncain
When there are exceptions during a formatter's write to stream, I am seeing that the HttpError responses is being sent in chunked encoding format.
I noticed that this HttpError response behavior ...
Id #998 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 18 at 3:35 PM by kichalla
If you return an IQueryable from a controller action in a self host server, exceptions thrown when the IQueryable executes are not handled appropriately. The server will simply drop the connection ...
Id #997 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 18 at 7:15 AM by jdaley
WebApi-on-Owin's HttpMessageHandlerAdapter populates following properties on an incoming request:
MS_RetrieveClientCertificateDelegate
MS_IsLocal
When a batching request comes in these are pop...
Id #996 | Release:
v5.0 Preview
| Updated: Thu at 2:13 PM by yaohuang | Created: Apr 18 at 12:57 AM by kichalla
We try to figure out whether we should do null propagation in query composition by looking at the QueryProvider of the IQueryable. We handle Linq2Objects, Linq2Sql and EntityFramework there.
For...
Id #995 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 17 at 9:21 PM by raghuramn
The current signature of OwinBufferPolicySelector is the following:
We should make the UseBufferedInputStream & UseBufferedOutputStream methods overridable.
public class OwinBufferPolicySelector ...
Id #994 | Release:
v5.0 RTM
| Updated: May 6 at 8:17 PM by eilonlipton | Created: Apr 17 at 6:22 PM by kichalla
When there is no content assigned to a HttpResponseMessage, the response is being sent in a chunked encoding format.
Example:
public HttpResponseMessage ReturnNoContent()
{
return Req...
Id #993 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 16 at 11:29 PM by kichalla
When an exception(example: OperationCanceledException) occurs in a message handler, we do not convert it to a safe http response message at the HttpServer level. By 'safe', I mean to HttpResponseMe...
Id #990 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 16 at 1:10 AM by kichalla
Reading/writing the following code is a bit non-intuitive:
public class HomeController : ApiController
{
[HttpGet("")]
public string Get()
{
return "Hello, World!";
}
}
Why do I need to sa...
Id #988 | Release:
v5.0 RTM
| Updated: May 7 at 4:41 AM by eilonlipton | Created: Apr 15 at 10:35 PM by davidmatson
Currently Web Api on Owin implementation uses IHostBufferPolicySelector interface defined in System.Web.Http, but I feel we should have a new interface going forward on Owin.
When IHostBufferPoli...
Id #987 | Release:
v5.0 RTM
| Updated: May 6 at 8:42 PM by eilonlipton | Created: Apr 14 at 2:28 PM by kichalla
In SelfHost/OwinHost, route matching normally happens at HttpRoutingDispatcher, but when CORS is enabled, we add a message handler where we do route matching for pre-flight requests. Since this mes...
Id #986 | Release:
v5.0 RTM
| Updated: May 8 at 6:09 AM by kamehrot | Created: Apr 14 at 2:04 PM by kichalla
This scenario effects WebApi-on-Owin's Soft 404 Not Found responses.
In SelfHost/OwinHost, route matching normally happens at HttpRoutingDispatcher, but when CORS is enabled, we add a message han...
Id #985 | Release:
v5.0 RTM
| Updated: May 6 at 8:44 PM by eilonlipton | Created: Apr 14 at 1:55 PM by kichalla
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 ...
Id #984 | Release:
v5.0 RTM
| Updated: May 7 at 5:34 PM by eilonlipton | Created: Apr 12 at 10:43 PM by raghuramn
Currently some of TAP-based methods in the aspnetwebstack libraries does not have overloads with CancellationToken parameter. For instance following classes:
System.Net.Http: HttpContent and succ...
Id #983 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 12 at 9:28 PM by dtretyakov
Need to update all project templates as well.
Id #982 | Release:
v5.0 RTM
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Apr 11 at 11:07 PM by youssefm
Although you can add new view locations using the various format properties (ViewLocationFormats, PartialViewLocationFormats, etc.), there is no way to implement locations that vary on dynamic valu...
Id #981 | Release:
v5.0 RTM
| Updated: May 14 at 5:29 PM by eilonlipton | Created: Apr 11 at 2:32 AM by maxtoroq
For the following action:
Note: the default value is a guid enclosed { , } characters.
[HttpGet("ForGuids/v3/{id:guid={6A9B7F3B-ED68-4759-ABBA-959ED47EB326}}")]
public string ForGuids(Guid id...
Id #978 | Release:
v5.0 RTM
| Updated: May 6 at 8:17 PM by eilonlipton | Created: Apr 9 at 8:46 PM by kichalla
If you manually set the count to return by using SetInlineCount or NextPageLink, the QueryableAttribute action filter overwrites it, so your value is never returned in the response.
Confirmed as ...
Id #976 | Release:
v5.0 Preview
| Updated: Apr 28 at 1:51 PM by raghuramn | Created: Apr 9 at 1:51 PM by mikestu
I have an working OData service, but as soon as a I add a property of type TimeSpan, I have trouble POSTing to it. The $metadata shows the type as Edm:Time as I would expect. And Fiddler shows the ...
Id #975 | Release:
v5.0 Preview
| Updated: Apr 20 at 1:27 AM by raghuramn | Created: Apr 9 at 3:27 AM by richardgavel
I was testing a filter that accessed the request and the response on the OnActionExecuted method. In order to setup the request on the HttpActionExecutedContext for my test I had to write all this ...
Id #973 | Release:
vNext
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Apr 5 at 9:02 PM by jacalvar
Currently we always take the IHttpActionSelector implementation present on global configuration. We should consider taking it from Per-Controller configuration if present.
HelpPage, for example, ...
Id #972 | Release:
v5.0 Preview
| Updated: Apr 18 at 12:54 AM by youssefm | Created: Apr 5 at 4:25 PM by kichalla
Make the User property of ApiController virtual so that it can be mocked or add a setter so that it can be setup for test.
Id #971 | Release:
v5.0 RTM
| Updated: May 8 at 12:05 AM by kamehrot | Created: Apr 5 at 3:54 PM by jacalvar
In the ODataMediaTypeFormatters.cs file, in the Create method
CreateRawValue(new RawValueSerializerProvider(), deserializerProvider) uses it's own SerializerProvider instead of the one provided b...
Id #970 | Release:
v5.0 RTM
| Updated: May 14 at 5:36 PM by eilonlipton | Created: Apr 5 at 5:23 AM by jacalvar
For the following action:
[HttpPost("api/values/path1")]
[HttpGet("api/values/path2")]
public void DoSomething()
{
}
Currently the routes in the collection are like following:
RouteTemplate:
...
Id #969 | Release:
v5.0 RTM
| Updated: May 6 at 8:18 PM by eilonlipton | Created: Apr 5 at 1:27 AM by kichalla
One of the default services for Web API is an implementation of IModelValidatorCache. That interface and the corresponding implementation are internal, meaning that it's not possible to set up an ...
Id #967 | Release:
vNext
| Updated: Today at 1:59 PM by erikos | Created: Apr 3 at 5:10 PM by stevep001
This is especially an issue for attribute routing:
[HttpGet("{id?}")]
public string Get(string id) { }
doesn't work unless you add a default value
[HttpGet("{id?}")]
public string Get(strin...
Id #966 | Release:
v5.0 RTM
| Updated: May 6 at 8:20 PM by eilonlipton | Created: Apr 3 at 12:50 AM by youssefm
Issue
Today if a preflight is rejected. 400 is returned and following is the tracing output
iisexpress.exe Information: 0 : [2013-04-02T23:39:57.9893186Z] Level=Info, Kind=Begin, Category='System....
Id #965 | Release:
v5.0 RTM
| Updated: May 6 at 8:53 PM by eilonlipton | Created: Apr 2 at 11:53 PM by trdai
Following traces are what you get:
iisexpress.exe Information: 0 : [2013-04-02T23:33:47.6530772Z] Level=Info, Kind=Begin, Category='System.Web.Http.Cors', Id=00000000-0000-0000-0000-000000000000, O...
Id #964 | Release:
v5.0 RTM
| Updated: May 1 at 9:47 PM by eilonlipton | Created: Apr 2 at 11:38 PM by trdai
Repro
Setup a CORS enable web site and write a customized trace writer like this:
public class CustomTraceWriter : SystemDiagnosticsTraceWriter
{
public override void Trace(
HttpRequestMessage...
Id #962 | Release:
v5.0 Preview
| Updated: Apr 22 at 9:59 PM by vijay_rk | Created: Apr 2 at 10:56 PM by trdai
In the case where action names are the same for multiple actions, to keep route names unique in the route collection, we dynamically generate the names with suffixes like Products.Get1, Products.Ge...
Id #961 | Release:
v5.0 RTM
| Updated: May 6 at 8:20 PM by eilonlipton | Created: Apr 2 at 10:55 PM by kichalla
Currently there is an overload that takes HttpStatusCode and T but in many cases HttpStatusCode.OK is the code and in those cases it would be easier just to be able to pass in T.
It would also be...
Id #960 | Release:
v5.0 Preview
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Apr 2 at 8:23 PM by HenrikN
Currently the following would cause a problem, as we try to create 2 routes(one for each route prefix) with the same route name calle "GetSingleSample".
[RoutePrefix("api/test")]
[RoutePrefix("api/...
Id #959 | Release:
v5.0 RTM
| Updated: May 6 at 8:21 PM by eilonlipton | Created: Apr 2 at 8:15 PM by kichalla
I have been unable to make batching work in Web host scenarios with our latest code. I tried using Brad Wilson's batching sample from his blog post and also the HostedBatch sample in public asp.net...
Id #957 | Release:
v5.0 Preview
| Updated: Apr 22 at 4:35 PM by yaohuang | Created: Apr 2 at 2:10 AM by kichalla
We should keep whitespace as whitespace.
Id #955 | Release:
v5.0 Preview
| Updated: Apr 16 at 5:51 PM by youssefm | Created: Apr 1 at 10:14 PM by youssefm
I just received a report from a user where he only uses attribute routing and because of the HTTP method route constraint that we create from the attribute, no other HTTP methods can reach the Web ...
Id #954 | Release:
v5.0 RTM
| Updated: May 6 at 8:21 PM by eilonlipton | Created: Apr 1 at 7:08 PM by yaohuang
HttpRoute.GetRouteData truncates the Uri in the request message to calculate the relative request Uri, but in certain cases, for example when the request Uri is equal to the virtualPathRoot, the st...
Id #953 | Release:
vNext
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Mar 30 at 9:43 PM by DaveVdE
We're using nightly nuget packages 2013-03-30. When we're trying to upload large files (for instance > 2Mb) and process it by using HttpContentMultipartExtensions we've got unhandled exception whic...
Id #952 | Release:
v5.0 Preview
| Updated: Fri at 4:53 AM by dtretyakov | Created: Mar 30 at 4:18 PM by dtretyakov
Hi,
I followed the instructions on http://aspnetwebstack.codeplex.com/wikipage?title=CORS%20support%20for%20ASP.NET%20Web%20API to setup CORS.
When Get requests are issues I see the OPTIONS r...
Id #951 | Release:
v5.0 Preview
| Updated: Apr 26 at 2:14 AM by ebucis | Created: Mar 30 at 1:35 AM by ebucis
We can parse a filter to a FilterClause but there is no easy way to convert that FilterClause to an Expression;
ex: var filterClause = Microsoft.Data.OData.Query.ODataUriParser.ParseFilter(filter...
Id #950 | Release:
v5.0 RTM
| Updated: May 1 at 9:47 PM by eilonlipton | Created: Mar 30 at 1:33 AM by a7medkamel
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 gener...
Id #949 | Release:
v5.0 Preview
| Updated: May 8 at 10:19 PM by kenegozi | Created: Mar 29 at 8:23 PM by roncain
The authentication filter won’t work under tracing mode as tracer will wrap the auth filter as a FilterTracer which is just an IFilter. FilterGrouping.SelectAvailable can't select correct authentic...
Id #946 | Release:
v5.0 Preview
| Updated: May 13 at 5:02 PM by davidmatson | Created: Mar 28 at 9:43 PM by hongyes
The web.config in the Help Page package still references MVC 4 and Web Pages 2 assemblies
Id #945 | Release:
v5.0 Preview
| Updated: May 8 at 11:35 PM by phenning | Created: Mar 28 at 5:28 PM by jeloff
If you look at this SO thread: AntiForgeryToken invalid after sign in
It seems to me that an official method, is needed to cleanly update the form token, when the user has been successfully authe...
Id #944 | Release:
vNext
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Mar 27 at 7:03 AM by ericpanorel
public class CustomersController : ApiController
{
public Customer GetCustomer(int key)
{
return null;
}
}
Use the url http://localhost/MyTypes/2886753098675309
This shoul...
Id #942 | Release:
v5.0 RTM
| Updated: May 1 at 9:57 PM by eilonlipton | Created: Mar 26 at 6:49 PM by raghuramn
If tracing is enabled and DefaultHttpControllerSelector.GetControllerMapping() is called before the first request has been processed, the MessageHandler pipeline will be corrupted.
The TraceManage...
Id #938 | Release:
v5.0 Preview
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Mar 25 at 6:51 PM by roncain
HttpControllerContext controllerContext = new HttpControllerContext() { Configuration = config };
is the offending line.
Id #932 | Release:
vNext
| Updated: Apr 15 at 3:00 AM by eilonlipton | Created: Mar 23 at 12:34 AM by raghuramn
When generating a link for an OData resource, the current experience is as follows.
Url.ODataLink(
new EntitySetPathSegment("People"),
new KeyValuePathSegment(key));
Consider impr...
Id #929 | Release:
vNext
| Updated: Apr 15 at 3:02 AM by eilonlipton | Created: Mar 22 at 6:38 PM by jacalvar