Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1514

null pointer in inherited privileges and rules

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1, 2.4.0, 2.3.0.patch
    • None
    • None

    Description

      Its the switch statement, maybe null?

      for (RuleDefinition ruleDefinition : ruleEngine.getRuleDefinitions()) {
      switch (ruleDefinition.getCheck().checkTypeEnum()) {
      case attributeDefCreate:
      case groupCreate:
      case stemCreate:
      switch (ruleDefinition.getThen().thenEnum()) {
      case assignAttributeDefPrivilegeToAttributeDefId:
      case assignGroupPrivilegeToGroupId:
      case assignStemPrivilegeToStemId:

      //see if the subject matches

      ----Original Message----
      From: grouper-users-request@internet2.edu grouper-users-request@internet2.edu On Behalf Of Yoann Delattre
      Sent: Thursday, February 23, 2017 9:32 AM
      To: grouper-users@internet2.edu
      Subject: [grouper-users] null pointer exception when i click on [More] --> [Inherited privileges assigned to members of this group]

      Hi,

      in Grouper 2.3 with all the patches, when i'm on a group and i click on
      [More] --> [Inherited privileges assigned to members of this group], i
      get this error :

      java.lang.NullPointerException: Problem calling method
      inheritedPrivilegesAssignedToThisGroupFromFolders on
      edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Group
      at
      edu.internet2.middleware.grouper.rules.RuleFinder.findSubjectPrivilegeInheritRules(RuleFinder.java:202)
      at
      edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Group.inheritedPrivilegesAssignedToThisGroupFromFolders(UiV2Group.java:4642)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at
      edu.internet2.middleware.grouper.util.GrouperUtil.invokeMethod(GrouperUtil.java:4143)
      at
      edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4094)
      at
      edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doGet(GrouperUiRestServlet.java:293)
      at
      edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doPost(GrouperUiRestServlet.java:165)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
      org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:80)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
      edu.internet2.middleware.grouper.ui.GrouperUiFilter.doFilter(GrouperUiFilter.java:1038)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
      edu.yale.its.tp.cas.client.filter.CASFilter.doFilter(CASFilter.java:209)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
      uk.ac.bris.is.grouper.ui.PreCASFilter.doFilter(PreCASFilter.java:128)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at
      org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at
      org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at
      org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:200)
      at
      org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at
      org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
      at
      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)

      I think it's related to : https://bugs.internet2.edu/jira/browse/GRP-1323

      Thanks !
      Yoann

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist