[Mono-bugs] [Bug 52626][Nor] New - CodeAccessPermission Demand() method too restrictive
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Jan 2004 05:46:05 -0500 (EST)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by gkodinov@openlinksw.co.uk.
http://bugzilla.ximian.com/show_bug.cgi?id=52626
--- shadow/52626 2004-01-06 05:46:05.000000000 -0500
+++ shadow/52626.tmp.19947 2004-01-06 05:46:05.000000000 -0500
@@ -0,0 +1,31 @@
+Bug#: 52626
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: RedHat 9
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: gkodinov@openlinksw.co.uk
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc: tim.haynes@openlinksw.co.uk,ztashev@openlinksw.co.uk
+Summary: CodeAccessPermission Demand() method too restrictive
+
+Find attached a file that implements a custom permission as a descendent of
+System.Security.CodeAccessPermission class.
+The binary runs on MS.NET (no exception) and fails (throws an exception) on
+Mono.
+Tried w/ Mono from the CVS.
+
+IMHO the problem is the if statement on
+(class/corlib/System.Security/CodeAccessPermission.cs:41) :
+ if (perm == null)
+ throw new SecurityException (Locale.GetText
+("Not a IBuiltInPermission and Demand isn't overridden"));
+
+This is not how it looks like it is in MS.NET.