dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bugs #10047] Default By default, System.Threading.Thr


From: Thong Nguyen
Subject: [Pnet-developers] [bugs #10047] Default By default, System.Threading.Thread.CurrentPrincipal returns null.
User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; MyIE2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.40607)

This mail is an automated notification from the bugs tracker
 of the project: DotGNU Portable.NET.

/**************************************************************************/
[bugs #10047] Latest Modifications:

Changes by: 
                Thong Nguyen <address@hidden>
'Date: 
                Wed 08/25/2004 at 07:27 (NZ)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | tum
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
fixed in cvs






/**************************************************************************/
[bugs #10047] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10047>
Project: DotGNU Portable.NET
Submitted by: Carl-Adam Brengesjö
On: Wed 08/18/2004 at 00:13

Category:  None
Severity:  5 - Average
Item Group:  None
Resolution:  Fixed
Privacy:  Public
Assigned to:  tum
Status:  Closed


Summary:  Default By default, System.Threading.Thread.CurrentPrincipal returns 
null.

Original Submission:  test.cs:
----------------------------
using System;
using System.Threading;
using System.Security.Principal;

class Class
{
        [STAThread]
        public static void Main(String[] args)
        {
                Console.WriteLine(""{0}"", 
Thread.CurrentPrincipal.Identity.Name);
                Thread.CurrentPrincipal = new 
WindowsPrincipal(WindowsIdentity.GetCurrent());
                Console.WriteLine(""{0}"", 
Thread.CurrentPrincipal.Identity.Name);
        }
}



output (windows):
----------------------------
C:>test.exe
""
"HAMLETcarladam"


expected output (pnet):
----------------------------
address@hidden:/cygdrive/c$ ilrun test.exe
""
"carladam"


output (pnet):
----------------------------
address@hidden:/cygdrive/c$ ilrun test.exe
Uncaught exception: System.NullReferenceException: The value 'null' was found 
where an instance of an object was required
        at Class.Main(String[])


And Thread.CurrentPrincipal == null evulates to true on pnet, while on m$ it's 
false.


Follow-up Comments
------------------


-------------------------------------------------------
Date: Wed 08/25/2004 at 07:27       By: Thong Nguyen <tum>
fixed in cvs












For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10047>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]