[Mono-bugs] [Bug 383869] New: PublicKeyToken wrongly treated as case sensitive in web. config

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 25 13:32:45 EDT 2008


User gunsh at neobee.net added comment

           Summary: PublicKeyToken wrongly treated as case sensitive in
           Product: Mono: Runtime
           Version: unspecified
          Platform: x86
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gunsh at neobee.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Created an attachment (id=210567)
 --> (https://bugzilla.novell.com/attachment.cgi?id=210567)
Files needed to reproduce bug

The actual Mono version used is 1.9.1 on Ubuntu 7.10, installed in a separate
folder to system install.

A PublicKeyToken attribute of system.data/DbProviderFactories/add tag and its
type attribute is currently case SENSITIVE and in reality it should be case
INSENSITIVE. I have checked MS.NET and they treat it as case insensitive.

To reproduce, extract attached archive to a directory of choice. There are two
files: Default.aspx and web.config. The purpose of the page is to use a
database datasource by looking up a database provider in web.config. The
database provider used is Mono.Data.Sqlite.SqliteFactory as copied from
machine.config. The actual provider is irrelevant.

Start xsp2 and navigate browser to Default.aspx. The page will succeed in
opening a connection to an in-memory database. It will fail in finding the
table but this is irrelevant for demonstration of the bug (the error: Sqlite
error no such table: table1).

Now attempt altering PublicKeyToken in web.config from 0738eb9f132ed756 to
0738Eb9f132ed756 (please notice first "E" changing to uppercase) and reloading
the Default.aspx. Please notice the following error: "Failed to find or load
the registered .Net Framework Data Provider".

A similar bug (#320652) has been submitted and resolved but it concerned a
different PublicKeyToken.

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

More information about the mono-bugs mailing list