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

PermissionException in SampleDataLoader.init

    XMLWordPrintable

    Details

    • 21 Status:
      Merged
    • Test Plan:
      Hide

      Set -Dsakai.demo=true when starting (set on the nightlies)
      Make the there isn't any ERRORs in the log about SampleDataLoader
      Make sure you can create courses and terms are populated.

      If this job doesn't run this doesn't work.

      Show
      Set -Dsakai.demo=true when starting (set on the nightlies) Make the there isn't any ERRORs in the log about SampleDataLoader Make sure you can create courses and terms are populated. If this job doesn't run this doesn't work.

      Description

      Recently we've seen an issue on nightly where the SampleDataLoader isn't populating the data. This results in no terms or Sample data in demo mode. I believe it was first reported as an issue in Slack on Tuesday April 13th at 6:30PM. Things were (supposedly) fine before then. Probably was broken as of the data reset on Sunday April 11th. 

      This error is seen in the log.

      19-Apr-2021 17:17:00.732 ERROR [main] org.sakaiproject.coursemanagement.impl.SampleDataLoader.init Unable to load CM data: org.sakaiproject.coursemanagement.impl.exception.PermissionException: No permission to modify CM data
      

      I've tracked it down to this line that's causing the exception but not sure why yet.

      EnrollmentSet es = cmAdmin.createEnrollmentSet(co.getEid() + ENROLLMENT_SET_SUFFIX,
          co.getTitle() + " Enrollment Set", co.getDescription() + " Enrollment Set",
          "lecture", "3", co.getEid(), instructors);
      

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  ern Earle R Nietzel
                  Reporter:
                  jonespm Matthew Jones
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration