[Mono-bugs] [Bug 665521] New: Browser capability files cannot be overriden, but exception is thrown

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 19 09:36:21 EST 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=665521#c0


           Summary: Browser capability files cannot be overriden, but
                    exception is thrown
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: avkekem at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=409120)
 --> (http://bugzilla.novell.com/attachment.cgi?id=409120)
Test website which can be easily tested using xsp2 in the root folder.

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.13
(KHTML, like Gecko) Chrome/9.0.597.45 Safari/534.13

When trying to override the browser capabilities of the httprequest class, the
following error is thrown:
Duplicate Key "ie6to9" found in /tmp/test/App_Browsers/ie.browser and in file
/opt/mono-2.8/etc/mono/2.0/Browsers/Compat.browser

on ms.net you are still able to override capability settings

Reproducible: Always

Steps to Reproduce:
1. extract the attached example, which provides an App_Browsers/ie.browser,
overriding the default settings of mono.
2. start the example using xsp2 and start localhost:8080/index.aspx
3. You see the exception in the response.
Actual Results:  
Server Error in '/' Application

Duplicate Key "ie6to9" found in
/home/avkekem/Projects/petrel.git.full/wwwroot/App_Browsers/ie.browser and in
file /opt/mono-2.8/etc/mono/2.0/Browsers/Compat.browser

Description: HTTP 500. Error processing request.

Stack Trace:

System.Web.Configuration.nBrowser.Exception: Duplicate Key "ie6to9" found in
/home/avkekem/Projects/petrel.git.full/wwwroot/App_Browsers/ie.browser and in
file /opt/mono-2.8/etc/mono/2.0/Browsers/Compat.browser
  at System.Web.Configuration.nBrowser.Build.AddBrowserFile
(System.Web.Configuration.nBrowser.File file) [0x00000] in <filename unknown>:0 
  at System.Web.Configuration.nBrowser.Build.AddBrowserFile (System.String
fileName) [0x00000] in <filename unknown>:0 
  at System.Web.HttpApplicationFactory.get_CapabilitiesProcessor () [0x00000]
in <filename unknown>:0 
  at System.Web.Configuration.HttpCapabilitiesBase.GetConfigCapabilities
(System.String configKey, System.Web.HttpRequest request) [0x00000] in
<filename unknown>:0 
  at System.Web.HttpRequest.get_Browser () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.ResolveAdapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Control.get_Adapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.get_PageAdapter () [0x00000] in <filename unknown>:0 
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename
unknown>:0 
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context)
[0x00000] in <filename unknown>:0 

Expected Results:  
the browser capabilities in the App_Browsers should override the default
compat.browser settings provided with mono. (as it works in ms.net)

-- 
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