Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-62270

Cron task fails on data privacy related task when admin directory renamed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.5.1
    • 3.5
    • Privacy
    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-62270-MASTER-Cron-task-fails-on-data-privacy-related-task
    • Easy
    • Hide
      1. Rename admin directory to "cooladmin"
      2. In config.php set $CFG->admin = "cooladmin"
      3. Add personal data request in Admin->Privacy and policies->Data requests
      4. Change directory to "$CFG->dirroot . cooladmin/cli"
      5. Run php cron.php (no errors should appear)
      6. Check in Admin->Privacy and policies->Data requests if status of the request has changed from "Pending" to "Awaiting approval".
      Show
      Rename admin directory to "cooladmin" In config.php set $CFG->admin = "cooladmin" Add personal data request in Admin->Privacy and policies->Data requests Change directory to "$CFG->dirroot . cooladmin/cli" Run php cron.php (no errors should appear) Check in Admin->Privacy and policies->Data requests if status of the request has changed from "Pending" to "Awaiting approval".
    • GDPR Followup Sprint 1

      If admin directory is renamed to something else, cron tasks:

      1. initiate_data_request_task.php fails. The reason: fixed path (.../admin/....) to php script instead of using {$CFG->admin} in line 57.

      2. process_data_request_task.php fails. The reason: fixed path (.../admin/....) to php script instead of using {$CFG->admin} in line 60.

      In the result personal data export request can't be approved (still are "Pending")

       

      Now we have error 'PHP Fatal error:  require_once(): Failed opening required '.../admin/tool/dataprivacy/lib.php' in log..

      No error should occur in log and requests' statuses should be changed to "Awaiting approval".  

       

       

       

            Unassigned Unassigned
            adamtppaw Adam Pawełczak
            Marina Glancy Marina Glancy
            Andrew Lyons Andrew Lyons
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.