Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-689

Invocation of method SecuredIdentityManager.lookupById(Class<C> attributedType, String id) results in infinite loop and stack overflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • PLINK_2.7.1.Final
    • PLINK_2.7.0.Final
    • BASE
    • None
    • Hide

      Simply make any invocation, valid or not, of SecuredIdentityManager.lookupById. It should fail.

      Show
      Simply make any invocation, valid or not, of SecuredIdentityManager.lookupById. It should fail.

      Invocation SecuredIdentityManager.lookupById(Class<C> attributedType, String id) results in infinite loop and stack overflow because the decorator is not invoked. Looks like a typo:

      Here's the code:

      @Override
      public <C extends IdentityType> C lookupById(Class<C> attributedType, String id) throws IdentityManagementException

      { return lookupById(attributedType, id); }

      That can't be right. I assume it should be this:

      @Override
      public <C extends IdentityType> C lookupById(Class<C> attributedType, String id) throws IdentityManagementException

      { return decorated.lookupById(attributedType, id); }

      This is a problem since the old lookupIdentityById is deprecated apparently.

              psilva@redhat.com Pedro Igor Craveiro
              sagneta_jira Stephen Agneta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: