[Mono-bugs] [Bug 52693][Wis] Changed - Unsupported declarative permissions

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 6 Feb 2004 15:29:33 -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 spouliot@videotron.ca.


--- shadow/52693	2004-01-20 15:08:22.000000000 -0500
+++ shadow/52693.tmp.10338	2004-02-06 15:29:33.000000000 -0500
@@ -139,6 +139,27 @@
 Principal sample source code
 ------- Additional Comments From spouliot@videotron.ca  2004-01-08 20:30 -------
 Actually it's a little CAS related as it blocks it's implementation
 (from my point of view ;)
+------- Additional Comments From spouliot@videotron.ca  2004-02-06 15:29 -------
+[update] Actually there was something else preventing the sample to
+work with Mono. Thread.CurrentPrincipal wasn't implemented.
+It's now implemented (post 0.30) and the new results are:
+[poupou@rh9 bug52693]$ mono bug52693.exe
+Declarative (me)
+I'm a mono hacker :)
+Declarative (you)
+You're a mono hacker :(
+Imperative (me)
+I'm a mono hacker :)
+Imperative (you)
+System.Security.SecurityException: invalid Principal
+in <0x002bc> System.Security.Permissions.PrincipalPermission:Demand ()
+in <0x00038> .PrincipalTest:Imperative (string)
+in <0x001c0> .PrincipalTest:Main (string[])
+The last exception being correct.