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

StackOverflowError occurs when calling lookupById

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Duplicate Issue
    • PLINK_2.7.0.Final
    • PLINK_2.7.1.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()); } }

    Description

      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
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: