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

Error after accessing a data deletion request for another user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.5
    • 3.5
    • Privacy
    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • MDL-62075_master
    • Hide
      1. Log in as admin or dpo if you did set up the dpo role and assign a user to it
      2. Create a delete data request for another user
      3. Run cron to process the request
      4. Approve the request as admin or dpo
      5. Run cron to process the request (the actual deletion)
      6. Access admin/tool/dataprivacy/mydatarequests.php
      7. You SHOULD NOT see any fatal error
      8. You SHOULD see something like "Delete all of my personal data (Firstname Secondname)"
      Show
      Log in as admin or dpo if you did set up the dpo role and assign a user to it Create a delete data request for another user Run cron to process the request Approve the request as admin or dpo Run cron to process the request (the actual deletion) Access admin/tool/dataprivacy/mydatarequests.php You SHOULD NOT see any fatal error You SHOULD see something like "Delete all of my personal data (Firstname Secondname)"

      As reported by Victor Deniz in https://tracker.moodle.org/browse/MDL-61899?focusedCommentId=609945&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-609945

      1. Delete the child user.
      2. As the user with parent role, access Data requests.

        Error message:
        Invalid user
         
        More information about this error
        ×Debug info: SELECT id FROM {user} WHERE id = ? AND deleted = ?
        [array (
        0 => '78',
        1 => 0,
        )]
        Error code: invaliduser
        ×Stack trace: * line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
         
        line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
        line 6105 of /lib/accesslib.php: call to moodle_database->get_record()
        line 78 of /admin/tool/dataprivacy/classes/output/my_data_requests_page.php: call to context_user::instance()
        line 51 of /admin/tool/dataprivacy/classes/output/renderer.php: call to tool_dataprivacy\output\my_data_requests_page->export_for_template()
        line 412 of /lib/outputrenderers.php: call to tool_dataprivacy\output\renderer->render_my_data_requests_page()
        line 61 of /admin/tool/dataprivacy/mydatarequests.php: call to plugin_renderer_base->render()
        

            dmonllao David Monllaó
            dmonllao David Monllaó
            Mihail Geshoski Mihail Geshoski
            Jun Pataleta Jun Pataleta
            Jun Pataleta Jun Pataleta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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