Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1953

RS when automatically assign tasks

    XMLWordPrintable

    Details

      Description

      This is more an improvement than a Bug, because one has to break a correct task: create a task with one document and select automatic task assignment, publish the course and after that delete the one task dacument in the course editor without publishing and leaving the task broken. The task document is being deleted in the file system and a ArrayIndexOutOfBoundsException occurs at org.olat.course.nodes.gta.manager.GTAManagerImpl.nextSlotRoundRobin (GTAManagerImpl.java:690)

      This patch helps:

      diff --git a/src/main/java/org/olat/course/nodes/gta/manager/GTAManagerImpl.java b/src/main/java/org/olat/course/nodes/gta/manager/GTAManagerImpl.java
      --- a/src/main/java/org/olat/course/nodes/gta/manager/GTAManagerImpl.java
      +++ b/src/main/java/org/olat/course/nodes/gta/manager/GTAManagerImpl.java
      @@ -687,7 +687,7 @@
       		
       		if(nextSlot == null) {
       			//begin a new round
      -			nextSlot = slots[0];
      +			if (slots.length > 0) nextSlot = slots[0];
       		}
       		return nextSlot;
       	}
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Stephan Clemenz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 20 minutes
                20m