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

Deleting a user tour causes error in privacy data export

    XMLWordPrintable

    Details

      Description

      Deleting  a user tour does not delete associated user preferences. This leads to the following exception being emailed to the user:

       
      From: Do not reply to this email (via Moodle) <noreply@city.ac.uk>
      Sent: 24 July 2019 09:46
      To: ###
      Subject: Exception occurred while processing privacy data

       
      Exception occurred while calling tool_usertours\privacy\provider::export_user_preferences.

      This means that plugin tool_usertours did not complete the processing of data. The following exception information may be passed on to the plugin developer:

      Can't find data record in database table tool_usertours_tours.

      #0 /lib/dml/moodle_database.php(1522): moodle_database->get_record_select('tool_usertours_...', 'WHERE id = ?', Array, '', 2) #1 /admin/tool/usertours/classes/tour.php(148): moodle_database->get_record('tool_usertours_...', Array, '', 2) #2 /admin/tool/usertours/classes/tour.php(123): tool_usertours\tour->fetch('4') #3 /admin/tool/usertours/classes/privacy/provider.php(81): tool_usertours\tour::instance('4') #4 /lib/moodlelib.php(7916): tool_usertours\privacy\provider::export_user_preferences(142732) #5 /privacy/classes/manager.php(578): component_class_callback('tool_usertours
      ...', 'export_user_pre...', Array) #6 /privacy/classes/manager.php(611): core_privacy\manager::component_class_callback('tool_usertours', 'core_privacy
      lo...', 'export_user_pre...', Array) #7 /privacy/classes/manager.php(361): core_privacy\manager->handled_component_class_callback('tool_usertours', 'core_privacy
      lo...', 'export_user_pre...', Array) #8 /admin/tool/dataprivacy/classes/task/process_data_request_task.php(113): core_privacy\manager->export_user_data(Object(core_privacy\local\request\contextlist_collection)) #9 /lib/cronlib.php(185): tool_dataprivacy\task\process_data_request_task->execute() #10 /lib/cronlib.php(74): cron_run_inner_adhoc_task(Object(tool_dataprivacy\task\process_data_request_task)) #11 /admin/cli/cron.php(61): cron_run() #12 {main}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pholden Paul Holden
                Reporter:
                amanda.doughty Amanda Doughty
                Peer reviewer:
                Mathew May
                Integrator:
                Adrian Greeve
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  9/Sep/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m