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

Privacy export of user data doesn't export description files correctly/triggers debugging

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • Hide
      1. Login as admin
      2. Select Profile from user menu
      3. Press Edit profile
      4. Add an image to the Description field (easiest to choose one from the Wikimedia repository)
      5. Download the privacy-export.php file from this issue and place it in the moodle directory for the branch being tested
      6. Run the following command:

        $ php privacy-export.php --userid=2
        

      7. Confirm there is no debugging in the output regarding use of format_text, when processing core_user component
      8. Open exported index file
      9. Navigate to User Admin User > data.json
      10. Confirm the image you added to your profile description is displayed in the description field
      Show
      Login as admin Select Profile from user menu Press Edit profile Add an image to the Description field (easiest to choose one from the Wikimedia repository) Download the privacy-export.php file from this issue and place it in the moodle directory for the branch being tested Run the following command: $ php privacy-export.php --userid=2 Confirm there is no debugging in the output regarding use of format_text , when processing core_user component Open exported index file Navigate to User Admin User > data.json Confirm the image you added to your profile description is displayed in the description field

      When exporting data for a user using the privacy tool, for a user whose description field contains files (e.g. embedded images) - the file link is broken in the exported archive when viewing the user data

      The following debugging notice is also triggered during the export process:

          Processing core_user (26/27) (Wednesday, 14 July 2021, 8:43 PM)
      ++ Before calling format_text(), the content must be processed with file_rewrite_pluginfile_urls() ++
      * line 1347 of /lib/weblib.php: call to debugging()
      * line 379 of /user/classes/privacy/provider.php: call to format_text()
      * line 222 of /user/classes/privacy/provider.php: call to core_user\privacy\provider::export_user()
      * line 8010 of /lib/moodlelib.php: call to core_user\privacy\provider::export_user_data()
      * line 578 of /privacy/classes/manager.php: call to component_class_callback()
      * line 611 of /privacy/classes/manager.php: call to core_privacy\manager::component_class_callback()
      * line 339 of /privacy/classes/manager.php: call to core_privacy\manager->handled_component_class_callback()
      * line 79 of /privacy-export.php: call to core_privacy\manager->export_user_data()
      

            pholden Paul Holden
            pholden Paul Holden
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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