1 Reply Latest reply on May 16, 2006 5:43 PM by Anil Saldanha

    EntityContext.getCallerPrincipal() returns wrong principal i

    garek Newbie

      I have some code that is basically the following:

      public Integer ejbHomeGetId() throws FinderException {
       return ejbSelectIdByLoginName(ctxt.getCallerPrincipal().getName());
      }
      


      However, in 4.0.4.GA, EntityContext.getCallerPrincipal().getName() returns "anonymous," and not the authenticated principal's name.

      I'm not sure if this is the right place to report this, but I couldn't find a bug reporting page anywhere.

      Thanks,
      Brian