[Mono-bugs] [Bug 418566] New: Out Of Range exception when defining a mutex access rule
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Aug 20 02:39:56 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=418566
Summary: Out Of Range exception when defining a mutex access rule
Product: Mono: Class Libraries
Version: 1.9
Platform: i686
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: brett_senior at yahoo.com.au
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Description of Problem:
When defining a Mutex Access Rule, the program throws an Out Of Range exception
even though the code is almost identical to what is on the MSDN Documentation
for Microsoft's .NET implementation.
Steps to reproduce the problem:
1. Execute the following code fragment:
string user;
MutexSecurity ms = new MutexSecurity();
//
//First create the username that we will use in the mutex
security
//rules.
//
user = System.Environment.UserDomainName + "\\" +
System.Environment.UserName;
//
//Now create the mutex access rules and add them to the
security object.
//
MutexAccessRule mar1 = new MutexAccessRule(
user, MutexRights.ReadPermissions,
AccessControlType.Allow);
ms.AddAccessRule(mar1);
Actual Results:
Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
range.
at System.Security.AccessControl.AuthorizationRule..ctor
(System.Security.Principal.IdentityReference identity, Int32 accessMask,
Boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags
propagationFlags) [0x0004d] in
/home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/AuthorizationRule.cs:69
at System.Security.AccessControl.AccessRule..ctor
(System.Security.Principal.IdentityReference identity, Int32 accessMask,
Boolean isInherited, InheritanceFlags inheritanceFlags, PropagationFlags
propagationFlags, AccessControlType type) [0x00000] in
/home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/AccessRule.cs:44
at System.Security.AccessControl.MutexAccessRule..ctor
(System.Security.Principal.IdentityReference identity, MutexRights mutexRights,
AccessControlType type) [0x00000] in
/home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/MutexAccessRule.cs:44
at System.Security.AccessControl.MutexAccessRule..ctor (System.String
identity, MutexRights mutexRights, AccessControlType type) [0x00000] in
/home/ingo/mono-1.9.1+dfsg/mcs/class/corlib/System.Security.AccessControl/MutexAccessRule.cs:52
Expected Results:
An access rule be defined so that it can then be added to the security object
for the mutex.
How often does this happen?
Always.
Additional Information:
I am running Debian/Lenny 32 bit with Mono 1.9.1.
--
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