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

Error after accessing a data deletion request for another user

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.5
    • Fix Version/s: 3.5
    • Component/s: Privacy
    • Labels:
    • Testing Instructions:
      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)"
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-62075_master

      Description

      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()
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dmonllao David Monllaó
                Reporter:
                dmonllao David Monllaó
                Peer reviewer:
                Mihail Geshoski
                Integrator:
                Jun Pataleta
                Tester:
                Jun Pataleta
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18