MVC 5 Html.Action route name

I want to render action (child action) within my view using Html.Action helper method. I have different routes which have unique names. I did not find the way to give the route name while using Htm...

Id #2240 | Release: v5.2.4 Beta | Updated: Feb 26 at 5:40 PM by yishaigalatzer | Created: Feb 25 at 7:00 AM by apmt

Reconsider how we dispose MessageHandlers in OWIN host

We implemented support for disposing the HttpConfiguration and message handlers in response to the OWIN OnAppDisposing notification in 5.1 thinking that it's the right time to dispose anything hold...

Id #2237 | Release: v5.2.4 Beta | Updated: Feb 26 at 5:45 PM by yishaigalatzer | Created: Feb 17 at 11:48 PM by nowakra

Add option to use permanent redirects in `RequireHttpsAttribute`

See http://aspnetwebstack.codeplex.com/SourceControl/network/forks/martincostello/RequireHttpsAttributeAsHttp301/contribution/8008 pull request which adds support to the RequireHttpsAttribute class...

Id #2236 | Release: v5.2.4 Beta | Updated: Feb 19 at 6:08 PM by dougbu | Created: Feb 12 at 1:20 AM by dougbu

Compiling Nuget Package for v3.0.0 - Tests fail

I have performed the following steps: Download aspnetwebstack-66298100f4e349d3812b1aad32c5278c256a2cdd.zip Open a Visual Studio 2013 Developer Prompt Issue build.cmd EnableSkipStrongNames Issue b...

Id #2232 | Release: v5.2.4 Beta | Updated: Feb 11 at 10:43 PM by yishaigalatzer | Created: Jan 30 at 7:20 AM by MircoBabin

Occasional UnobservedTaskException due to HttpListenerRequest disposed

Ported from http://katanaproject.codeplex.com/workitem/375. We occasionally get an exception like the following: TaskScheduler.UnobservedTaskException event was raised. env=prod exception=System...

Id #2224 | Release: v5.2.3 RTM | Updated: Jan 8 at 11:26 PM by danroth27 | Created: Jan 5 at 9:10 PM by danroth27

Performance issues with System.Web.Mvc.Html.TemplateHelpers and default editor actions

We noticed a lot of blocking disk IO was occurring as we were load testing our MVC application. We took stack dumps when this was happening, and below is an example stack. We profiled DiskBuildResu...

Id #2220 | Release: v5.2.4 Beta | Updated: Jan 8 at 11:25 PM by danroth27 | Created: Dec 31, 2014 at 2:00 PM by mattpeterson

CorsMessageHandler does not respect IExceptionHandler

CorsMessageHandler will swallow all the exceptions that it catches and turn them into 500 response. This behavior does not work with a custom IExceptionHandler implementation where you want a non H...

Id #2219 | Release: v5.2.4 Beta | Updated: Jan 8 at 11:11 PM by danroth27 | Created: Dec 26, 2014 at 6:28 AM by yufeih

extensiblity: OData serializer manipulates formatters workflow inconsistently producing unexpected results

To format OData v4, there is extensibility provided in form of custom attributes. Consider the following code: namespace System.Web.OData { /// <summary> /// An attribute to be placed on controller...

Id #2218 | Release: None | Updated: Jan 27 at 6:02 AM by lianw | Created: Dec 19, 2014 at 9:13 PM by schmidtaa

MVC Remote attribute does not work with complex objects and collections

Scenario For a model that has a property which is a complex object or collection where the object contains a property with a RemoteAttribute, the html generated will include the fully qualified na...

Id #2213 | Release: v5.2.4 Beta | Updated: Jan 23 at 4:19 PM by dougbu | Created: Dec 17, 2014 at 1:44 AM by smuecke

Attribute routes cannot be applied to controllers with generic (non action) methods

when calling MapMvcAttributeRoutes() it fails if any controller (or the base class of a controller) contains a generic method. In our case we have a generic base class that handles some default o...

Id #2201 | Release: v5.2.4 Beta | Updated: Dec 16, 2014 at 8:34 PM by nowakra | Created: Dec 3, 2014 at 2:27 PM by Michelvg

jQuery unobtrusive validation does not behave correctly with remote validation when multiple items are selected in a checkbox \ dropdown list

Consider <input type="checkbox" name="allowedDays" checked value="Sunday" /> <input type="checkbox" name="allowedDays" value="Monday" /> <input type="checkbox" name="allowedDays" checked value="Fr...

Id #2198 | Release: v5.2.4 Beta | Updated: Jan 5 at 9:40 PM by danroth27 | Created: Dec 1, 2014 at 6:33 PM by pranavkm

Disabled Html.CheckBox -> Hidden Field not disabled

When Html.CheckBoxFor(m => m.Property, new { disabled = "disabled" }) is used, the generated html-input-hidden-field should also be disabled, otherwise the request value is alway false.

Id #2151 | Release: v5.2.4 Beta | Updated: Oct 7, 2014 at 5:34 PM by yishaigalatzer | Created: Oct 6, 2014 at 1:57 PM by rafe11

Razor does not correctly parse HTML attributes that have spaces surrounding the equals

After playing around with the parse tree a bit I noticed that if you were to create HTML elements such as: <div class = "foo"></div> <div class ="foo"></div> <div class= "foo"></div> The...

Id #2149 | Release: v5.2.4 Beta | Updated: Oct 7, 2014 at 5:21 PM by yishaigalatzer | Created: Oct 1, 2014 at 10:53 PM by NTaylorMullen

Apply common type conventions on Enum type

For example, DataContractAttribute can be used on entity type and complex type, for example: [DataContract(Namespace = "MySpace")] public class Customer { …. } for enum type, the DataContrac...

Id #2115 | Release: vNext | Updated: Aug 22, 2014 at 4:39 AM by xuzhg | Created: Aug 22, 2014 at 4:39 AM by xuzhg

HttpMessageInvoker object disposed exception

Hello, I am hosting a Web API REST service using Owin and a typical startup class, for example: public void Configuration(IAppBuilder builder) { System.Diagnostics.Debug.WriteLine...

Id #2091 | Release: v5.2.4 Beta | Updated: Dec 2, 2014 at 11:55 PM by yishaigalatzer | Created: Aug 4, 2014 at 8:16 PM by thebothead

Web API Basic Auth sample throws null ref when Invalid Credentials are supplied

Authorization still fails but an exception should not be thrown.

Id #2074 | Release: vNext | Updated: Dec 9, 2014 at 10:32 PM by yishaigalatzer | Created: Jul 25, 2014 at 3:42 AM by MrkMnl

WebApi ModelBinder - empty parm setting non-nullable integer to 0

I submit that given the following querystring ?mycoll=&singlevar=1 the following model class MyModel { public ICollection<int> mycoll { get; set; } public int singlevar { get; set; }...

Id #2067 | Release: vNext | Updated: Jul 23, 2014 at 10:30 PM by yishaigalatzer | Created: Jul 16, 2014 at 3:59 PM by acsteitz

Html.AntiForgeryToken() adds duplicate X-Frame-Options headers if called more than once

System.Web.WebPages v.3.0.0.0: Sometimes, more than one anti-forgery token is needed in a page (when there are multiple forms). Calling Html.AntiForgeryToken() causes the "X-Frame-Options: SAMEO...

Id #2057 | Release: vNext | Updated: Jul 10, 2014 at 5:31 PM by yishaigalatzer | Created: Jul 10, 2014 at 4:16 PM by jeremylew

HelpPage VB version throws exception when the model is a generic type

Following was reported from customer...I was able to repro this and verified that C# version works fine in this case: I had a problem with this package when using generic types. I had to replace ...

Id #2050 | Release: vNext | Updated: Jul 9, 2014 at 10:26 PM by yishaigalatzer | Created: Jul 7, 2014 at 10:35 PM by kichalla

MultipartFormDataStreamProviderHelper should check ContentDispositionHeaderValue.FileNameStar

Some libraries (e.g. Python) set "filename*" but not "filename" in the Content-Disposition when sending multipart form data for a file. MultipartFormDataStreamProviderHelper should check ContentDis...

Id #2008 | Release: vNext | Updated: Jun 16, 2014 at 5:10 PM by yishaigalatzer | Created: Jun 10, 2014 at 4:27 PM by ejball

Provide a way to enumerate all MVC actions

We don't currently have a good way to enumerate all actions and action descriptors in the framework. It's a common ask for extensibility and all the code that does it (correctly) is internal. htt...

Id #1999 | Release: vNext | Updated: Jun 11, 2014 at 10:37 PM by yishaigalatzer | Created: Jun 4, 2014 at 12:17 AM by nowakra

OutputCacheAttribute should reuse the response encoding

In OutputCacheAttribute.cs, when the response output is substituted with a StringWriter, the encoding and the culture of the response output are not forwarded to it. Also, because the default Str...

Id #1984 | Release: FB 1.0.0 | Updated: May 28, 2014 at 10:10 PM by danroth27 | Created: May 28, 2014 at 5:59 PM by sebastienros

Public access to ActionDescriptor and ControllerDescriptor

When IAuthorizationFilter is implemented, AuthorizationContext provides access to ActionDescriptor and ControllerDescriptor, so that both can be used to check whether controller and/or action is ma...

Id #1983 | Release: FB 1.0.0 | Updated: May 30, 2014 at 11:27 AM by NightOwl888 | Created: May 28, 2014 at 11:30 AM by atuzovic

Help page: Documentation of data model annotations in "buddy" class (MetadataType)

Hi, nice work with adding documentation of model annotations :-) In many scenarios the model class is a generated partial class. In those cases, the recommended way to add field annotation is via...

Id #1971 | Release: FB 1.0.0 | Updated: Dec 10, 2014 at 8:19 PM by rbigbie | Created: May 27, 2014 at 8:02 AM by ToreErstad

[unit tests] Confirm no unit tests rely on ambient locale

This is initially more of a work item. But I expect some problems will turn up and need to be fixed. In a quick check, the Turkish user locale does not cause problems when unit testing the web s...

Id #1966 | Release: v5.2 RTM | Updated: Jun 16, 2014 at 12:51 AM by dougbu | Created: May 23, 2014 at 9:04 PM by dougbu

Return OK on CORS preflight requests no matter what

A CORS preflight request is about establishing trust. It's purpose is not to tell whether or not a resource might work, but if a trust can be established between between the calling domain and t...

Id #1951 | Release: vNext | Updated: May 26, 2014 at 12:05 PM by jgauffin | Created: May 17, 2014 at 8:27 PM by jgauffin

DropdownListFor modifies the SelectListItem collection passed to it

Hi, When using the DropdownListFor helper and passing to it the collection of SelectListItem from which it is populated, the DropdownListFor will modify the passed collection after it is called; ...

Id #1913 | Release: vNext | Updated: May 14, 2014 at 8:27 AM by wutever0 | Created: May 6, 2014 at 11:05 AM by wutever0

Make FilterGrouping and GetFilterGrouping (HttpActionDescriptor) public

I'm currently in the process of implementing my own IHttpController, which to a large degree mirrors the functionality of the ApiController, but for several reasons can't extend it, the main ones b...

Id #1902 | Release: vNext | Updated: May 7, 2014 at 10:41 PM by yishaigalatzer | Created: May 2, 2014 at 3:24 AM by Alxandr

Support using member name as value in EnumHelper

I think having the option to use the Enum member name as value would be a good feature. Text values are a lot more descriptive, specially when used in query strings, e.g. ?color=Red instead of ?c...

Id #1894 | Release: vNext | Updated: Apr 30, 2014 at 10:19 PM by yishaigalatzer | Created: Apr 30, 2014 at 1:49 AM by maxtoroq

MultipartStreamProvider does not allow to limit the size of multipart posts to MultipartMemoryStreamProvider

Too easy to max out service memory. See suggestions. https://aspnetwebstack.codeplex.com/discussions/542978

Id #1874 | Release: vNext | Updated: Apr 23, 2014 at 7:25 PM by yishaigalatzer | Created: Apr 23, 2014 at 4:00 PM by itaid

Add HtmlHelper.FileFor

MVC binding is a great feature, but when files need to be posted, we have to go out of our way to make them integrate properly. I figured this could be simplified and I created a HTML Helper for Fi...

Id #1817 | Release: vNext | Updated: Apr 9, 2014 at 10:21 PM by danroth27 | Created: Apr 1, 2014 at 7:17 PM by MisinformedDNA

MVC5 Claims version of the Authorize attribute

I'm trying out some of the new stuff in VS2013 with MVC5 and the new OWIN authentication middleware. So, I'm used to using the [Authorize] attribute to limit actions by role but I'm trying to use...

Id #1807 | Release: vNext | Updated: Apr 2, 2014 at 10:34 PM by kamehrot | Created: Mar 28, 2014 at 3:43 AM by regisbsb

Default settings for PostAsJsonAsync

PostAsJsonAsync currently creates new instance of JsonMediaTypeFormatter which in turn uses empty JsonSerializerSettings. I think it should be possible to provide default settings for this method...

Id #1739 | Release: Breaking changes | Updated: Jul 17, 2014 at 1:51 PM by Mentoliptus | Created: Mar 3, 2014 at 10:17 PM by oliverjanik

XmlDocumentationProvider should be able to handle multiple XML documents.

The ASP.Net Web API Help Page NuGet package has currently a feature that allows a developer to only specify 1 XML documentation file, which is used when showing the Help Page. Since most developers...

Id #1720 | Release: vNext | Updated: Jan 23 at 9:38 PM by kgalagadi | Created: Feb 24, 2014 at 3:47 PM by SjorsG

Implement StreamContent(...) (or Content<T> taking a stream)

Content<T> doesn't make sense because non of the serializers take a stream as input. However we can consider adding a StreamContent method on ApiController You can see the need for this feature...

Id #1618 | Release: Breaking changes | Updated: Jan 15, 2014 at 10:45 PM by yishaigalatzer | Created: Jan 15, 2014 at 12:24 AM by NTaylorMullen

Trigger a custom ajax call in unobtrusive ajax

The way I see it, I can create form or a elements, decorated with the data attributes. The unobtrusive script listens for form submit and anchor click events. There is no way to interact with the i...

Id #1613 | Release: vNext | Updated: Aug 27, 2014 at 7:29 PM by pranavkm | Created: Jan 13, 2014 at 4:55 PM by fejesjoco

Tracking bug for MaxLengthAttribute

Apparently the MaxLengthAttribute only works on strings and arrays. It might be useful to expand this include collection types.

Id #1575 | Release: Breaking changes | Updated: Dec 23, 2013 at 9:57 PM by pranavkm | Created: Dec 23, 2013 at 9:57 PM by pranavkm

Allow manual setting of https for ReCaptcha

Due to our firewall/proxy setup in prod, our HttpContext is unsecure behind the firewall but to our users is https. We need a way to force https for the ReCaptcha helper. Something like: public s...

Id #1569 | Release: vNext | Updated: Jan 7, 2014 at 9:48 PM by danroth27 | Created: Dec 19, 2013 at 7:19 PM by supergibbs

Facilitate replacement of ActionMethodSelector

A common pattern used by my team is to declare shared action methods in base class controllers, and then implement derived classes which take advantage of action methods declared in the base class....

Id #1568 | Release: vNext | Updated: Jan 7, 2014 at 9:50 PM by danroth27 | Created: Dec 19, 2013 at 3:48 PM by IanNewson

Support attribute routing template syntax in standard routing

Attribute routing introduced compact syntax for a bunch of common scenarios (optionality, constraints, default values, etc). We should support the same syntax for standard routing

Id #1550 | Release: vNext | Updated: Sep 22, 2014 at 7:23 PM by nowakra | Created: Dec 13, 2013 at 7:01 PM by danroth27

Translator of Razor view engine generates writes of whitespaces from code context

Ported from https://aspnet.codeplex.com/workitem/7510 (1 vote) Sample code: <div>@{var a = 1; <text>@a</text>}</div> It translates to: public class Index_cshtml : System.Web.Mvc.WebViewPage { ...

Id #1548 | Release: Breaking changes | Updated: Dec 13, 2013 at 6:56 PM by Igorbek | Created: Dec 13, 2013 at 5:49 PM by danroth27

Razor parser fails if tags balanced outside same code block

Porting from https://aspnet.codeplex.com/workitem/8641: The razor parser checks HTML tags to assure they are balanced. This seems like a nice thing to do except it does this check only within the...

Id #1537 | Release: Breaking changes | Updated: Dec 13, 2013 at 7:46 PM by yishaigalatzer | Created: Dec 13, 2013 at 1:35 PM by kamehrot

Using Resource File Error Messages Fails With Data Annotations Attributes

Porting from https://aspnet.codeplex.com/workitem/8175: The additional data annotations attributes included in MVC 3 Futures (CreditCard, EmailAddress, FileExtension, Url) do not work when using ...

Id #1535 | Release: Breaking changes | Updated: Jan 8, 2014 at 12:57 AM by eilonlipton | Created: Dec 13, 2013 at 1:27 PM by kamehrot

DisplayFormat attribute not applied to editable html helpers

Porting from https://aspnet.codeplex.com/workitem/5436: When attempting to use the DisplayFormat attribute on an editable form element using html helpers (i.e, Html.Textbox, Html.TextboxFor), the...

Id #1533 | Release: Breaking changes | Updated: Dec 14, 2013 at 9:17 AM by AceHack | Created: Dec 13, 2013 at 1:21 PM by kamehrot

Html.Partial or RenderPartial with NULL value gets passed the wrong type

// Copied from https://aspnet.codeplex.com/workitem/8872 // Vote number : 32 If I render a partial from a view and pass a null value the base model type gets passed rather than the model / value...

Id #1532 | Release: Breaking changes | Updated: Jan 4, 2014 at 9:07 PM by AGd | Created: Dec 13, 2013 at 11:16 AM by yjhong

Make "GetFullHtmlFieldName" respect an arbitrary attribute

It is essential to make "GetFullHtmlFieldName", a method of ~\src\System.Web.Mvc\TemplateInfo.cs, respect an arbitrary attribute set on a model's property to change the name of an input. It is also...

Id #1527 | Release: vNext | Updated: Jan 8, 2014 at 10:43 PM by danroth27 | Created: Dec 13, 2013 at 7:33 AM by mmsaffari

Use HtmlTags or a builder pattern in MVC Html Helpers

// Copied from https://aspnet.codeplex.com/workitem/10365 // Vote number : 1 Hi, It is very hard to customise the output of built-in MVC Html helpers and a library like HtmlTags would help a...

Id #1521 | Release: Breaking changes | Updated: Dec 17, 2013 at 8:53 PM by nowakra | Created: Dec 13, 2013 at 3:13 AM by yjhong

Web Api Strongly Typed URL Generation

// Copied from https://aspnet.codeplex.com/workitem/10362 // Vote number : 1 Hi, Is it planned to include any strongly typed URL generation for Web Api. Generating URL's is something ever...

Id #1519 | Release: Breaking changes | Updated: Dec 17, 2013 at 8:24 PM by nowakra | Created: Dec 13, 2013 at 3:04 AM by yjhong

Automatically add anti forgery token to BeginForm

Vote number : 2 Please add an option in ASP.NET MVC 5 to automatically add anti forgery token to every Form element, something like this: <appSettings> <autoAntiForgeryToken enabled="true...

Id #1516 | Release: Breaking changes | Updated: Dec 17, 2013 at 8:59 PM by nowakra | Created: Dec 13, 2013 at 1:26 AM by yjhong

MVC - Difficult to implement 404 Custom Error Page correctly

Porting from https://aspnet.codeplex.com/workitem/10131: Implementing a custom 404 error page within ASP.NET MVC is difficult and error prone Here are some examples http://stackoverflow.com...

Id #1508 | Release: vNext | Updated: Dec 28, 2014 at 7:55 PM by medvjed | Created: Dec 12, 2013 at 10:26 PM by kamehrot

Allow HTML Markup in Validation messages

Porting from https://aspnet.codeplex.com/workitem/9958: Please change ValidationExtensions.ValidationSummary(...) to use spanTag.InnerHtml = message and listItem.InnerHtml = errorTe...

Id #1507 | Release: vNext | Updated: Jun 17, 2014 at 9:30 PM by AlexBar | Created: Dec 12, 2013 at 10:03 PM by kamehrot

Web Api Help page sample generation xml/json fails for classes inherited from lists

Ported from : https://aspnet.codeplex.com/workitem/10340 The fix is to change the following code in SampleGeneration/ObjectGenerator.cs Replace Type type = collectionType.IsGenericType ? ...

Id #1501 | Release: vNext | Updated: Jan 29, 2014 at 10:11 PM by yishaigalatzer | Created: Dec 12, 2013 at 8:07 PM by kichalla

Update documentation link in ELMAH sample

The ELMAH sample currently refers to a spec on the CodePlex wiki. Once we publish a blog/article, we should reference that more permanent location instead.

Id #1495 | Release: v5.1 RTM | Updated: Dec 11, 2013 at 10:08 PM by yishaigalatzer | Created: Dec 11, 2013 at 7:02 PM by davidmatson

Child action OutputCache can not be disabled with web.config

MVC 5 .NET 4.5.1 Using OutputCache on child action I can not force MVC to bypass it using web.config: <system.web> <caching> <outputCache enableOutputCache="false" enableFragmentCache="false...

Id #1492 | Release: vNext | Updated: Jan 22, 2014 at 10:41 PM by danroth27 | Created: Dec 10, 2013 at 9:51 AM by FuriCuri

Support SingleResult<T>and other constructs in Core web API

We would like to consider adding support for: Delta<T> SingleResult<T> PageResult<T> to Core Web API. Currently these exist in OData only. When we do that we should also fix help page scen...

Id #1483 | Release: vNext | Updated: Feb 27, 2014 at 10:31 PM by yjhong | Created: Dec 6, 2013 at 7:36 PM by yishaigalatzer

Use custom ApiDescriptionComparer with ApiExplorer

Code in https://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Http/Description/ApiExplorer.cs removes all duplicates based on HTTP method + path This is not sometimes the desire...

Id #1478 | Release: vNext | Updated: Sun at 5:42 PM by milindur | Created: Dec 5, 2013 at 1:03 AM by Aarne

System.Web.Webpages.Html.HtmlHelper.ValidationMessage(string, string) does not work when it is used with jquery.validate.unobtrusive.js

Observation: System.Web.Webpages.Html.HtmlHelper.ValidationMessage(string, string) does not return the error message specified in the second parameter when it is used with jquery.validate.unobtru...

Id #1469 | Release: vNext | Updated: Nov 28, 2013 at 12:07 AM by yjhong | Created: Nov 28, 2013 at 12:07 AM by yjhong

ApiExplorer cannot figure out the correct URI Parameters with custom IHttpActionSelector

ApiExplorer cannot figure out the correct URI Parameters if I plug in a custom IHttpActionSelector. A repro application is available here: https://github.com/tugberkugurlu/ASPNETWebAPISamples/tree/...

Id #1466 | Release: vNext | Updated: Dec 24, 2014 at 5:55 AM by PeterZong | Created: Nov 27, 2013 at 9:28 AM by tugberk

Provide 'type' information to Json.net serializer to enable the setting TypeNameHandling.Auto to work as expected

While investigating the following SO post, I noticed that we currently do not pass the 'type' of the object to the Serialize method of JsonSerializer. Since we do not passing this information, the ...

Id #1454 | Release: vNext | Updated: Aug 11, 2014 at 1:47 AM by jonstelly | Created: Nov 25, 2013 at 5:54 PM by kichalla

Provide ability to pass message to NotFound() and other such methods

Please provide an ability to pass a custom error meesage (reason phrase) and/or exception details to the NotFound() method of ApiController. I wrote a custom implementation of IHttpActionResult, ...

Id #1452 | Release: vNext | Updated: Feb 27, 2014 at 1:03 AM by TIMGDev | Created: Nov 25, 2013 at 9:18 AM by ajayjadhav

Provide option to also display dates & times in RFC3339 format

Suggestion for a small, focused feature: Current date & time display does not match editing formats when @Html.Html5DateRenderingMode = Html5DateRenderingMode.Rfc3339 is in use. In particular we h...

Id #1449 | Release: vNext | Updated: Dec 4, 2013 at 10:42 PM by yishaigalatzer | Created: Nov 24, 2013 at 4:35 AM by dougbu

Make MapMvcAttributeRoutes unit testable

MapMvcAttributeRoutes requires the list of controllers in order to enumerate the attribute routes. The current implementation doesn't allow customizing the service used to provide the controller li...

Id #1445 | Release: vNext | Updated: Feb 26 at 4:05 AM by MihailRomanov | Created: Nov 22, 2013 at 6:12 PM by davidmatson

Provide base class for authentication filters

All the other filter types have base classes that help with implementing them. Authentication filters don't. Particularly for ChallengeAsync, it would be nice to have a virtual method like this: ...

Id #1432 | Release: vNext | Updated: Nov 20, 2013 at 10:42 PM by yishaigalatzer | Created: Nov 19, 2013 at 11:18 PM by davidmatson

Custom FxCop rule MW1200 crashes with NullReferenceException

This rule has been failing sporadically for some time. It recently started failing all the time in portable libraries. CA0001 : Rule=Microsoft.Web.FxCop#MW1200, Target=System.Web.Http.Error.#Argu...

Id #1416 | Release: vNext | Updated: Nov 20, 2013 at 10:47 PM by yishaigalatzer | Created: Nov 13, 2013 at 5:59 PM by davidmatson

HelpPage and versioning scenario

For the following versioned controllers which use the latest support for constraints in Web API's attribute routing, the help page shows up like in the attached document... [VersionedRoute("api/val...

Id #1406 | Release: vNext | Updated: Nov 13, 2013 at 10:33 PM by yishaigalatzer | Created: Nov 7, 2013 at 10:10 PM by kichalla

Consider removing the content from the 404 returned by HttpRoutingDispatcher

In HttpRoutingDispatcher#SendAsync, we return a 'soft 404' when no route matches. In the process, we return a response with content, which involves performing content negotiation and some potential...

Id #1394 | Release: vNext | Updated: Nov 13, 2013 at 10:54 PM by yishaigalatzer | Created: Nov 6, 2013 at 12:36 AM by nowakra

Html.EditorFor should set HTML5 required attribute for required values

We should set the required attribute for required fields in addition to setting data-val attributes so we take advantage of HTML5 form validation features. This would allow supporting HTML5 brows...

Id #1365 | Release: vNext | Updated: Oct 12, 2014 at 6:49 PM by AlbertoMonteiro | Created: Oct 24, 2013 at 7:13 AM by jongalloway

WebAPI GET request: ISO date is being deserialized to server local time

As posted in discussion https://aspnetwebstack.codeplex.com/discussions/462562 An ISO date string "2013-07-22T18:30:00.000Z" should be constructed as UTC kind DateTime. This works correctly with ...

Id #1364 | Release: vNext | Updated: Nov 6, 2013 at 10:39 PM by yishaigalatzer | Created: Oct 24, 2013 at 7:11 AM by amitava82

jquery.validate.unobtrusive.js using deprecated andSelf() method

line 195-199: var $forms = $(selector) .parents("form") .andSelf() .add($(selector).find("form")) .filter("form"); JQMIGRATE: jQuery.fn.an...

Id #1363 | Release: vNext | Updated: Nov 6, 2013 at 10:48 PM by yishaigalatzer | Created: Oct 23, 2013 at 10:15 AM by stijnherreman

Should not multi-select items in a drop-down list

DropDownList() and DropDownListFor() generate <select/> elements without the multiple attribute. Nonetheless the returned HTML may contain multiple <option/> elements with selected="selected" attr...

Id #1349 | Release: vNext | Updated: Oct 30, 2013 at 10:38 PM by yishaigalatzer | Created: Oct 18, 2013 at 9:35 PM by dougbu

Attribute Routing Route Debugging

Now that a lot of the AttributeRouting features from Tim McCall have been implemented I noticed that the routes.axd feature is not available. See http://attributerouting.net/#debugging This woul...

Id #1347 | Release: vNext | Updated: Jul 8, 2014 at 4:54 PM by spMike | Created: Oct 18, 2013 at 1:36 AM by rikishipabst

Support DataMember when model binding to override field names (formUrl encoding)

Support the following pattern (in both MVC or Web API): public class DataBindingClass { [DataMember(Name = "fieldNameForWire")] public string FieldNameForModel { get; set; } } For example: publi...

Id #1332 | Release: vNext | Updated: Oct 29, 2013 at 9:26 PM by gugavaro | Created: Oct 11, 2013 at 10:37 PM by davidmatson

binding support for checkbox lists

This is a request to support binding IEnumerable to a checkbox list (or radio button) Since the issue is rather complex, we are planning to take a look post 5.1. Here is a link to uservoice: ...

Id #1331 | Release: vNext | Updated: Jun 17, 2014 at 9:42 PM by AlexBar | Created: Oct 11, 2013 at 9:48 PM by yishaigalatzer

Add support for "optgroup" [1] in DropDownList/ListBox HTML helpers

... something like public static class SelectExtensions { public static MvcHtmlString DropDownGroupedList( this HtmlHelper htmlHelper, string name, IEnumerable<SelectListGroup> select...

Id #1327 | Release: vNext | Updated: Oct 9, 2013 at 10:15 PM by yishaigalatzer | Created: Oct 7, 2013 at 11:48 PM by ulrichb

[DataType] error message ignored in some cases

While [DataType] derivatives (e.g. [Phone]) are handled as expected, some types are associated with HTML5 validations. In this case MVC should generate data-val-* attributes mapping the HTML5 mess...

Id #1326 | Release: vNext | Updated: Oct 9, 2013 at 10:30 PM by yishaigalatzer | Created: Oct 7, 2013 at 11:29 PM by dougbu

WebHost: Exception inside GetPerRequestFormatterInstance is unhandled and also doesn't dispose resources

In WebHost, an exception thrown inside GetPerRequestFormatterInstance method of a formatter is unhandled resulting in yellow screen and also this does not dispose registered resources. Formatter:...

Id #1321 | Release: vNext | Updated: May 14, 2014 at 7:31 PM by danroth27 | Created: Oct 2, 2013 at 11:22 PM by kichalla

Improve editor flow for Razor

Currently in the editor flow we have a few things that need improvements Background thread -> Task with a custom TaskScheduler that runs one task + one waiting task All data from task should be im...

Id #1317 | Release: vNext | Updated: Sep 27, 2013 at 10:19 PM by yishaigalatzer | Created: Sep 27, 2013 at 10:19 PM by yishaigalatzer

Remove all references to Thread.CurrentPrincipal in HttpServer

Now that we have HttpRequestContext.Principal, it's strange that HttpServer is messing with Thread.CurrentPrincipal (some hosts don't even use Thread.CurrentPrincipal; other hosts take care of sett...

Id #1311 | Release: vNext | Updated: Sep 24, 2013 at 4:40 PM by yishaigalatzer | Created: Sep 23, 2013 at 7:42 PM by davidmatson

Remove Web API Help Page dependency on WebHost

The Web API Help Page package currently has a dependency on Web Host. We need to remove this dependency if we want to move to the OWIN host for our web project templates.

Id #1300 | Release: vNext | Updated: Dec 2, 2013 at 10:20 PM by warrenrumak | Created: Sep 17, 2013 at 8:43 PM by danroth27

ApiExplorer not returning expected descriptions. It should probably consider like request time action match based on route/query parameters.

Scenario: User likes to support uri path extension mapping on actions where we get a single item (ex: GetCustomer(id), Get(id)) Attached a katana selfhost repro. Issue: ApiExplorer doesn't r...

Id #1293 | Release: vNext | Updated: Nov 8, 2013 at 11:14 PM by kichalla | Created: Sep 11, 2013 at 8:23 PM by kichalla

Attribute Routing fails for controllers with the same name

Create two controllers under different namespace [Route("api/values1")] public class ValuesController : ApiController { public HttpResponseMessage Get() { return new HttpResponseMessage() {...

Id #1249 | Release: vNext | Updated: Nov 6, 2013 at 8:04 PM by nowakra | Created: Aug 26, 2013 at 7:35 PM by yishaigalatzer

Async support for RenderAction/Action and RenderPartial/Partial

Currently the trend is moving towards async every-where. So I think it will be great if there is a support for ActionAsync/RenderActionAsync and PartialAsync/RenderPartialAsync methods

Id #1241 | Release: vNext | Updated: Nov 27, 2014 at 10:37 PM by Alcero | Created: Aug 22, 2013 at 11:08 AM by imranbaloch

Add MVC HostAuthenticationFilter

We did this level of OWIN integration for Web API but not for MVC yet.

Id #1240 | Release: vNext | Updated: Aug 28, 2014 at 2:59 PM by appetere | Created: Aug 22, 2013 at 5:30 AM by danroth27

Respect model metadata and model validation in html helper controls

Hi, It would be nice if HtmlHelper control respect ModelMetadata and ModelValidation. I think about adding: maxlength attribute in TextBox or TextArea if property has StringLengthAttribute title ...

Id #1237 | Release: vNext | Updated: Tue at 4:31 AM by DaiPlusPlus | Created: Aug 21, 2013 at 11:49 AM by rosieks

HtmlHelper.AttributeEncode doesn't support IHtmlString

There's an overload for HtmlHelper.AttributeEncode(object) that converts the input to a string, and then calls HtmlAttributeEncode -- this prevents correct processing of a pre-encoded object that i...

Id #1202 | Release: vNext | Updated: Dec 5, 2013 at 11:33 PM by yishaigalatzer | Created: Aug 7, 2013 at 11:55 PM by nowakra

Tilde slash feature not work properly if has any space near equal sign

Don't sure that this problem had been reported before but I can't not find it in issue list. I've found that ASP.NET MVC 4 / Razor 2's new tilde slash (~/) feature stop working if has space ar...

Id #1196 | Release: vNext | Updated: Oct 23, 2013 at 11:04 PM by yishaigalatzer | Created: Aug 6, 2013 at 3:59 PM by suthep

MQ: Automate cleanup of old builds

Add a scheduled task to remove builds older than three months.

Id #1162 | Release: vNext | Updated: Sep 18, 2013 at 11:01 PM by yishaigalatzer | Created: Jul 24, 2013 at 7:23 PM by davidmatson

Add JSONP support in WebAPI

We added CORS support in WebAPI but most browsers don't have support for CORS so supporting JSONP will still be valuable. I am opening this bug in codeplex here so we can track this work.

Id #1157 | Release: vNext | Updated: Jul 30, 2014 at 7:10 AM by Belegs | Created: Jul 23, 2013 at 7:00 AM by kamehrot

Move HttpError to the System.Net.Http.Formatting.dll

So that clients that want to deserialize HttpError do not have to take a dependency on the server dll i.e System.Web.Http.dll

Id #1156 | Release: vNext | Updated: Oct 23, 2013 at 10:49 PM by yishaigalatzer | Created: Jul 23, 2013 at 12:46 AM by raghuramn

xml-doc sync for attributes

The xml-docs on MVC attributes, WebAPI attributes, and what is on MSDN, should be the same. Right now there are mismatches between the three here and there. an MQ pass needs to be done across a...

Id #1115 | Release: v5.0 RTM | Updated: Sep 18, 2013 at 11:24 PM by yishaigalatzer | Created: Jun 27, 2013 at 11:51 PM by kenegozi

Review Razor parser for potential null-refs

In most places the Razor parser checks for EOF condition, but we found a few places where it did not leading to editor crashes. A common pattern is the call to AcceptAndMoveNext and then looking ...

Id #1113 | Release: vNext | Updated: Sep 18, 2013 at 11:26 PM by yishaigalatzer | Created: Jun 27, 2013 at 11:25 PM by yishaigalatzer

MQ: Add source for FxCop rules and other build targets to Git

Per Eilon, when Brad Wilson asked for this code (after leaving the team): "So if you want to stick it in our CodePlex Git repo under /tools/src/ that works for me."

Id #1111 | Release: vNext | Updated: Oct 9, 2013 at 10:37 PM by yishaigalatzer | Created: Jun 27, 2013 at 8:25 PM by davidmatson

Use structured logging for tracers

The current Web API tracing system is largely unstructured; most of the per-event data is String.Formatted into a single text message (log4net-style). For example (MediaTypeFormatter tracing, simpl...

Id #1099 | Release: vNext | Updated: Jan 20, 2014 at 10:31 PM by nunocenteno | Created: Jun 20, 2013 at 7:13 PM by davidmatson

Support MethodInfo-based route generation

Moq has a nice way to specify a method you want to call, using syntax like this: mock.Setup(o => o.Do("foo", "bar).Returns(true)); The Setup portion here might work well for generating Web API ro...

Id #1083 | Release: vNext | Updated: Sep 19, 2013 at 12:06 AM by yishaigalatzer | Created: Jun 5, 2013 at 6:32 PM by davidmatson

MQ: Refactor ApiController.ExecuteAsync pipeline into separate classes

The current implementation of ApiController.ExecuteAsync is very large to live all inside of ApiController, which has a negative impact on unit testing this pipeline as well as ease of changing it ...

Id #1081 | Release: vNext | Updated: Sep 19, 2013 at 12:06 AM by yishaigalatzer | Created: Jun 5, 2013 at 6:24 PM by davidmatson

MVC: Make non-generic TryUpdateModel methods

Sometimes it is necessary to make a polymorphic binding of model on the basis of the interface. But if one pass the model of a particular type, wich implements the necessary interface, the binding ...

Id #1071 | Release: vNext | Updated: Oct 23, 2013 at 10:49 PM by yishaigalatzer | Created: May 28, 2013 at 7:00 AM by alogicman

Support Rails ActiveModel::Serializer Pattern for JSON Output on WebAPIs

Many client side JavaScript libraries are built off the assumption that the REST services use the ActiveModel::Serializer pattern for JSON data. It would be nice if their were built in support for ...

Id #1063 | Release: vNext | Updated: Sep 19, 2013 at 12:11 AM by yishaigalatzer | Created: May 23, 2013 at 10:28 PM by ntotten

Validation - consider using FileExtensionsAttribute from System.ComponentModel.DataAnnotations

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: vNext | Updated: Oct 30, 2013 at 10:10 PM by yishaigalatzer | Created: May 20, 2013 at 11:28 PM by kenegozi

input type = email jquery validate overriding mvc data annotation

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: Breaking changes | Updated: Dec 30, 2013 at 6:36 PM by eilonlipton | Created: May 15, 2013 at 3:51 AM by maxtoroq

Add support for Status Code/HttpHeader attributes in web api help

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: vNext | Updated: Jan 21, 2014 at 2:09 PM by minawana | Created: Apr 28, 2013 at 11:11 PM by neutrinoemission