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

Edited Issue: Stack overflow if GetControllerMapping called before 1st request [938]

$
0
0
If tracing is enabled and DefaultHttpControllerSelector.GetControllerMapping() is called before the first request has been processed, the MessageHandler pipeline will be corrupted.
The TraceManager.Initialize() code is idempotent for MessageHandlers only after the pipeline has been initialized at the first request. If called before the pipeline has been initialized, it will redundantly wrap MessageHandlerTracer's around other MessageHandlerTracers.
The net result of this is a corrupt pipeline of MessageHandlers that will cause stack overflow at first request.

The TraceManager.Initialize() needs to protect itself when it finds MessageHandlerTracer's already installed in HttpConfiguration.MessageHandlers


Viewing all articles
Browse latest Browse all 7925

Trending Articles



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