Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1218

NPE in PrincipalManagerTest#testMembers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12
    • jcr
    • None

    Description

      testMembers(org.apache.jackrabbit.oak.jcr.security.principal.PrincipalManagerTest)  Time elapsed: 0.01 sec  <<< ERROR!
      java.lang.NullPointerException
      	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:192)
      	at org.apache.jackrabbit.oak.core.MutableTree.getTree(MutableTree.java:378)
      	at org.apache.jackrabbit.oak.core.AbstractRoot.getTree(AbstractRoot.java:229)
      	at org.apache.jackrabbit.oak.core.AbstractRoot.getTree(AbstractRoot.java:65)
      	at org.apache.jackrabbit.oak.security.user.AuthorizableBaseProvider.getByPath(AuthorizableBaseProvider.java:66)
      	at org.apache.jackrabbit.oak.security.user.MembershipProvider$2.getNext(MembershipProvider.java:270)
      	at org.apache.jackrabbit.oak.security.user.MembershipProvider$2.getNext(MembershipProvider.java:244)
      	at org.apache.jackrabbit.oak.util.AbstractLazyIterator.hasNext(AbstractLazyIterator.java:39)
      	at org.apache.jackrabbit.oak.security.user.GroupImpl.getMembers(GroupImpl.java:195)
      	at org.apache.jackrabbit.oak.security.user.GroupImpl.getMembers(GroupImpl.java:81)
      	at org.apache.jackrabbit.oak.security.user.GroupImpl$GroupPrincipal.members(GroupImpl.java:275)
      	at org.apache.jackrabbit.oak.jcr.security.principal.PrincipalManagerTest.testMembers(PrincipalManagerTest.java:186)
      

      This only happens on Buildbot, which seems to be caused by a non stable test setup. When I run this test locally, the if branch checking isGroup is never executed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: