Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Разработка под ASP.NET > ASP.NET bug


Автор: Djuffin 24.1.2007, 15:32
Если ASP.NET web-приложение обнаруживает в адресной строке %22, то происходит unhandled exception.  


Примеры 
http://www.microsoft.com/%22.aspx

http://www.myspace.com/%22.aspx

Stack Trace on ASP.NET 1.1

Код

[ArgumentException: The path contains illegal characters.]
   System.IO.Path.nGetFullPathHelper(String path, Char[] invalidPathChars, Char[] whitespaceChars, Char directorySeparator, Char altDirectorySeparator, Char volumeSeparator, Boolean fullCheck, String& newPath) +0
   System.IO.Path.GetFullPathInternal(String path) +165
   System.IO.Path.GetFullPath(String path) +19
   System.Web.HttpApplication.CheckSuspiciousPhysicalPath(String physicalPath) +19
   System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +175
   System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) +434
   System.Web.HttpContext.GetCompleteConfig() +49
   System.Web.HttpContext.GetConfig(String name) +195
   System.Web.CustomErrors.GetSettings(HttpContext context, Boolean canThrow) +20
   System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow) +39
   System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +486


 

P.S. На других кодах мне воспроизвести не удалось.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)