[Mono-bugs] [Bug 525974] Crash when using custom VirtualPathProvider

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Aug 14 17:40:22 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=525974

User mhabersack at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525974#c1


Marek Habersack <mhabersack at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
           Platform|x86                         |All
         Resolution|                            |FIXED
         OS/Version|Windows XP                  |All
           Severity|Major                       |Normal




--- Comment #1 from Marek Habersack <mhabersack at novell.com>  2009-08-14 15:40:20 MDT ---
VPP is indeed important and it is implemented and used in Mono. Also, there is
a workaround for your problem, or rather there is a bug in your sample code.
Your VPP implementation always returns false from the DirectoryExists method
which, even though it works on MS.NET (and I think it's a bug in their
implementation), is not correct as it breaks the logic. If you serve a virtual
file, then the file lives in some virtual directory (in your case it's /), so
it is a bug to report that the / directory doesn't exist. The workaround would
be to return true to the enquiry about / directory existence. 
Nevertheless, I've added a fix to Mono which, should VPP report file's virtual
directory as non-existent, calls VPP.GetFile on the request virtual path and
that makes your sample work. 
Fix committed in r139969 (trunk), r139970 (2.4 branch) and r139971 (2.4.2
branch)

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list