Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Closed Issue: Web API Self Host incorrectly decodes URLs [887]

$
0
0
Consider a request with path '/%23a' (an escaped version of '/#a') and a route with template '/{x}' and x=RouteParameter.Optional. Suppose we the route maps to a controller with methods:
public IEnumerable<X> Get(){}
public X Get(string x){}

When run under ASP.NET host, the request is routed with x=#a which is correct, and the api then picks the Get(string) method, which is also correct.

Under Self Host, however, the request is routed with x = null, and the API picks the Get() method. Which is completely wrong.

I can't find the place where the framework starts using the wrong url, but apparently routing behavior differs.
Comments: This is a duplicate issue of https://aspnetwebstack.codeplex.com/workitem/607 . Thanks for the report!

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>