Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Commented Issue: FormDataCollectionExtensions provides incomplete context [1287]

$
0
0
FormDataCollectionExtensions (CreateActionContextForModelBinding) uses an incomplete HttpControllerContext, with only the configuration set (it calls the unit test-only constructor). Consumers normally expect (as an invariant) that request context, request, controller descriptor and controller are all set; attempts to access these properties during model binding in this case will return null unexpectedly.
Comments: We are assuming the request here is to make more "fake" data. David - can you please add more input to this bug?

Viewing all articles
Browse latest Browse all 7925

Trending Articles



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