Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39012

NPE in getAuthzUserGroupIds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0
    • Fix Version/s: 10.1, 11.0
    • Component/s: Kernel
    • Labels:
      None
    • 10 status:
      Resolved
    • Previous Issue Keys:
      KNL-1280

      Description

      Triggered from a Gradebook student view page. Doesn't seem that we should be getting NPEs so far inside kernel.

      uag is null. Looks like this would never be null in 2.9.x and now can be.

      // first consult the cache
                              if (authzUserGroupIdsCache.containsKey(userid)) {
                                      uag = (UserAndGroups) authzUserGroupIdsCache.get(userid);
                                      List<String> result = uag.getRealmQuery(new HashSet<String>(authzGroupIds));
                                      if (M_log.isDebugEnabled()) M_log.debug(uag);
                                      if (result != null) {
                                              // hit
                                              return result;
                                      }
                                      // miss
                              }
      

      sakai-version: 10
      request-path: /portal/tool/7f3ae5be-f652-41a7-9408-8f774a0b88b6/studentView.jsf

      Stacktrace:
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:470)
      caused by: java.lang.NullPointerException
      at org.sakaiproject.authz.impl.DbAuthzGroupService$DbStorage.getAuthzUserGroupIds(DbAuthzGroupService.java:925)
      at org.sakaiproject.authz.impl.BaseAuthzGroupService.getAuthzUserGroupIds(BaseAuthzGroupService.java:304)
      at org.sakaiproject.site.impl.BaseSite.getGroupsWithMember(BaseSite.java:1074)
      at org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getSiteGroupIdsForSubmittingAgent(PublishedAssessmentFacadeQueries.java:2705)
      at org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getSiteGroupIdsForCurrentUser(PublishedAssessmentFacadeQueries.java:2725)
      at org.sakaiproject.tool.assessment.facade.PublishedAssessmentFacadeQueries.getBasicInfoOfAllPublishedAssessments(PublishedAssessmentFacadeQueries.java:1421)
      at sun.reflect.GeneratedMethodAccessor2026.invoke(null:-1)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  aaronz Aaron Zeckoski (Inactive)
                  Reporter:
                  smarquard Stephen Marquard
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration