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

StackOverflowError occurs when calling lookupById

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • PLINK_2.7.1.Final
    • PLINK_2.7.0.Final
    • IDM
    • None
    • Hide

      Run a test similar to this

      @RunWith(CdiTestRunner.class)
      public class PicketLinkUnitTest { 
      
          @Inject private IdentityManager identityManager;
      
          @Test
          public void testExistanceOfUsers() {
                  User returnedUser = identityManager.lookupById(User.class, "bob");
                  assertThat(returnedUser, notNullValue());
              }
          }
      
      Show
      Run a test similar to this @RunWith(CdiTestRunner.class) public class PicketLinkUnitTest { @Inject private IdentityManager identityManager; @Test public void testExistanceOfUsers() { User returnedUser = identityManager.lookupById(User.class, "bob" ); assertThat(returnedUser, notNullValue()); } }

      There is an recursive call that causes an Infinite loop on line 72 of
      org.picketlink.internal.SecuredIdentityManager.java

      @Override // line 70
      public <C extends IdentityType> C lookupById(Class<C> attributedType, String id) throws IdentityManagementException {
              return lookupById(attributedType, id);    // line 72
      }
      

              psilva@redhat.com Pedro Igor Craveiro
              pmwqld Paul Wills (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: