[Mono-bugs] [Bug 82043][Nor] Changed - WebMethod and PrincipalPermission
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jul 13 05:53:11 EDT 2007
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 atsushi at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82043
--- shadow/82043 2007-07-08 15:10:35.000000000 -0400
+++ shadow/82043.tmp.4212 2007-07-13 05:53:11.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 82043
Product: Mono: Class Libraries
Version: 1.2
-OS:
+OS: unknown
OS Details:
-Status: NEW
+Status: NEEDINFO
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Sys.Web.Services
AssignedTo: atsushi at ximian.com
ReportedBy: mmorano at mikeandwan.us
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
@@ -34,6 +34,26 @@
In the first scenario, I would have expected a security exception to be
raised, rather than executing the method and returning the value.
Thanks,
Mike
+
+------- Additional Comments From atsushi at ximian.com 2007-07-13 05:53 -------
+You do not seem to provide more detailed procedure to reproduce the
+issue. At least the .asmx source below causes compilation error:
+
+<%@WebService Language="c#" Class="Bug82043" %>
+
+public class Bug82043
+{
+ [WebMethod]
+ [PrincipalPermission(SecurityAction.Demand,
+Authenticated=true, Role="admin")]
+ public bool Test(int x, int y)
+ {
+ return User.IsInRole("admin");
+ }
+}
+
+There also seem some traps that disables basic authentication stuff,
+which may be happening with your setup.
More information about the mono-bugs
mailing list