Bugs item #1034202, was opened at 2004-09-24 17:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1034202&group_id=22866

Category: JBossSX
Group: v4.0
Status: Open
Resolution: None
Priority: 5
Submitted By: Ken Yee (kenyee)
Assigned to: Nobody/Anonymous (nobody)
Summary: getActiveSubject returns null in secure directory

Initial Comment:
This seems to be a new bug in JBoss 4.0.0.  It wasn't
there in 4.0.0RC2 or 4.0.0RC3 :-(

Here's a quick code snippet done inside a servlet filter:
        org.jboss.security.SubjectSecurityManager mgr = null;
        try {
                InitialContext iniCtx = new InitialContext();
                subject = null;
                mgr = (SubjectSecurityManager) iniCtx
                                                
.lookup("java:comp/env/security/securityMgr");
                if (mgr != null) {
                        subject = mgr.getActiveSubject();
                }
                if (subject == null) {
                        System.out.println("JBoss bug: Couldn't get Active
subject from Security Manager!");
                }
        } catch (NamingException e) {
                System.out.println("Could not get security manager!", e);
        }


getRemoteUser is non-null, so there should be a valid
current subject.

 ken


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=1034202&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to