This project is read-only.


Attributes without route string combined with RoutePrefix is not resolving the given method



With the latest bits from myget (0809) I found a strange problem that a previously working route returned 404.

It turned out that if I've this config:
    public class AccountController : ApiController
        public IHttpActionResult GetAccountList()
The /accounts request will not hit the GetAccountList method.

If I specify HttpGet("") then it works fine. I think there is a bug here, which was introduced between 07.20 and 08.09, since 07.20 build worked perfectly.

Closed Aug 13, 2013 at 8:22 PM by eilonlipton
Hi attilah,

Per the comments from Kiran Challa this behavior has changed a bit recently. We are planning to update the spec page on CodePlex with the latest behavior. Sorry for the confusion!



kichalla wrote Aug 10, 2013 at 5:21 PM

@attilah: yeah, right...this is an expected behavior...we made changes recently to make specifying the route template explicit...however, we are re-considering this behavior and in future would be coming up with a different design which would address this issue (issues #1204,#1205 & #1206 are related to this)..thanks again for your feedback.

attilah wrote Aug 10, 2013 at 7:55 PM

Thanks, for the explanation.

This is the 3rd issue I hit because of using the latest bits and trying to help you by reporting such things. Is that possible to maintain 1 wiki page for the dogfooders about these kind of changes? It could save us hours and I think its less time for you to maintain such a list than if we add all time of all devs who is running on the latest bits :-)