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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5.1
    • Component/s: Privacy
    • Labels:
    • Sprint:
      GDPR Followup Sprint 1

      Description

      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".  

       

       

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            adamtppaw Adam Pawełczak
            Peer reviewer:
            Marina Glancy
            Integrator:
            Andrew Nicols
            Tester:
            Andrew Nicols
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jul/18