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

Lessons : NPE when trying to set group access to assignment

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 19.0, 20.0 [Tentative]
    • Fix Version/s: 19.1, 20.0 [Tentative]
    • Component/s: Lessons
    • Labels:
      None
    • 19 status:
      Verified
    • Test Plan:
      Hide
      1. Create a group on a site with assignments and lessons tools available.
      2. Add an assignment.
      3. From lessons, embed it to a page.
      4. Edit item and try to restrict the item to a group.
      5. Check the configuration was saved.
      Show
      Create a group on a site with assignments and lessons tools available. Add an assignment. From lessons, embed it to a page. Edit item and try to restrict the item to a group. Check the configuration was saved.

      Description

      Making some research forĀ SAK-41500 I've discovered you can't always set a group to an assignment in Lessons. Sometimes this stacktrace is thrown:

      04-Apr-2019 07:26:35.161 WARN [http-nio-20013-exec-29] org.sakaiproject.lessonbuildertool.service.AssignmentEntity.setGroups ID unused 
      org.sakaiproject.exception.IdUnusedException id: /assignment/a/00b289d4-ca79-4bc4-aed2-2913f5fb237d/1cbb26e0-fd66-4a3e-999c-a6e07d4810fd
      	at org.sakaiproject.assignment.impl.AssignmentServiceImpl.getAssignment(AssignmentServiceImpl.java:1265)
      	at sun.reflect.GeneratedMethodAccessor2643.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      	at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
      	at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
      	at com.sun.proxy.$Proxy168.getAssignment(Unknown Source)
      	at org.sakaiproject.lessonbuildertool.service.AssignmentEntity.setGroups(AssignmentEntity.java:617)
      	at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.checkControlGroup(SimplePageBean.java:3173)
      	at org.sakaiproject.lessonbuildertool.tool.beans.SimplePageBean.editItem(SimplePageBean.java:3080)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ....

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bergarvi Bernardo Garcia Vila
                  Reporter:
                  bergarvi Bernardo Garcia Vila
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code