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

Bulk or JoinSet group creation is not adding custom roles to the groups

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Awaiting Review
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.6
    • Fix Version/s: None
    • Component/s: Kernel
    • Labels:
      None
    • Test Plan:
      Hide

      Please add a Test Plan here.

      Show
      Please add a Test Plan here.

      Description

      If a course has custom roles, when creating groups manually, the roles are there in the new group and all works, but when creating groups using the bulk option or the "create new joinable set" option generates the groups without the custom roles, and then an exception is launched then trying to add a user with a custom role.

      To test it:
      Add a custom role in a site with the realm tool
      Add a user with that new role
      Create a joinable set in the course in the SiteInfo/Manage groups/ Create new joinable set
      Try to add the user to one of the new groups (it fails with the exception)

      Create a group manually in the normal way
      Try to add the user to the new manually created group (it works)

      It is related to https://jira.sakaiproject.org/browse/SAK-38961

      This is the exception:

      11:40:40.287 WARN [http-nio-8080-exec-9] PonderUtilCore.handleLevel1Error Exception rendering view:
      Target exception of class java.lang.IllegalArgumentException
      Successive lines until stack trace show causes progressing to exception site:
      Error invoking action
      --> Error invoking method processAddGroup in bean at path SiteManageGroupSectionRoleHandler.processAddGroup
      --> addMember user: 1567a7a4-1ef3-4052-9380-1117857dcafccalled with roleId: cpa_marker that isn't found on authzGroupId: /site/3d8350b6-15ca-474e-8125-6870f7a69071/group/36c92e22-c9d3-4914-9901-cc0c355825c5
      java.lang.IllegalArgumentException: addMember user: 1567a7a4-1ef3-4052-9380-1117857dcafccalled with roleId: cpa_marker that isn't found on authzGroupId: /site/3d8350b6-15ca-474e-8125-6870f7a69071/group/36c92e22-c9d3-4914-9901-cc0c355825c5
      at org.sakaiproject.authz.impl.BaseAuthzGroup.addMember(BaseAuthzGroup.java:1025)
      at org.sakaiproject.site.impl.BaseGroup.addMember(BaseGroup.java:423)
      at org.sakaiproject.site.tool.helper.managegroupsectionrole.impl.SiteManageGroupSectionRoleHandler.processAddGroup(SiteManageGroupSectionRoleHandler.java:786)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:34)
      at uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:22)
      at uk.org.ponder.reflect.JDKReflectiveCache.invokeMethod(JDKReflectiveCache.java:92)
      at uk.org.ponder.reflect.ReflectiveCache.invokeMethod(ReflectiveCache.java:146)
      at uk.org.ponder.mapping.support.DARApplier.invokeBeanMethod(DARApplier.java:180)
      at uk.org.ponder.rsf.state.support.RSVCApplier.invokeAction(RSVCApplier.java:218)
      at uk.org.ponder.rsf.processor.support.RSFActionHandler$1.run(RSFActionHandler.java:189)
      at uk.org.ponder.util.CollectingRunnableInvoker$1.run(CollectingRunnableInvoker.java:25)
      ....
      ETC (no need to copy it in full).

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                maintenanceteam Core Team
                Reporter:
                ddelblanco Diego del Blanco Orobitg
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Source Code