[Mono-bugs] [Bug 386008] New: Can't download files with unknown mime types in 2. 0 profile

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri May 2 09:53:02 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=386008


           Summary: Can't download files with unknown mime types in 2.0
                    profile
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Repro:

create a dummy.wmv file somewhere
execute xsp2 in that directory
open localhost:8080/dummy.wmv in browser, you'll get a 403.

The file downloads correctly with xsp.

With a few minor modifications I get this stack trace, which shows the issue:
System.Web.HttpException: Forbidden: The given key was not present in the
dictionary.
  at
System.Collections.Generic.Dictionary`2[System.String,System.String].get_Item
(System.String key) [0x0009c] in
/mono/head/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:134 
  at System.Web.MimeTypes.GetMimeType (System.String fileName) [0x00020] in
/mono/head/mcs/class/System.Web/System.Web/MimeTypes.cs:551 
  at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext
context) [0x0017a] in
/mono/head/mcs/class/System.Web/System.Web/StaticFileHandler.cs:126 
  at System.Web.StaticFileHandler.ProcessRequest (System.Web.HttpContext
context) [0x00197] in
/mono/head/mcs/class/System.Web/System.Web/StaticFileHandler.cs:129 
  at System.Web.HttpApplication+<>c__CompilerGenerated2.MoveNext () [0x00ffc]
in /mono/head/mcs/class/System.Web/System.Web/HttpApplication.cs:1217 
  at System.Web.HttpApplication.Tick () [0x00000] in
/mono/head/mcs/class/System.Web/System.Web/HttpApplication.cs:864


-- 
Configure bugmail: https://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