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

Exported course data from privacy tool doesn't format name/summary

XMLWordPrintable

    • MOODLE_311_STABLE
    • MOODLE_310_STABLE, MOODLE_311_STABLE
    • Hide
      1. Login as admin
      2. Navigate to Plugins > Filters > Manage filters in site administration
      3. Set Multi-Language Content: On and Apply to: Content and headings
      4. Create a new course with the following full name:

        <span class="multilang" lang="en">My course (EN)</span><span class="multilang" lang="de">Mein Kurs (DE)</span>
        

      5. Add an image to the Course summary field (easiest to choose one from the Wikimedia repository)
      6. Download and save locally as privacy-export.php the "Test of exporting user data" form: https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data
      7. Run the following command:

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

      8. Open exported index file
      9. Navigate to Category ... > Course My course (EN) > data.json
      10. Confirm fullname field is "My course (EN)"
      11. Confirm the image you added to the course summary is displayed in the summary field
      Show
      Login as admin Navigate to Plugins > Filters > Manage filters in site administration Set Multi-Language Content: On and Apply to: Content and headings Create a new course with the following full name: <span class="multilang" lang="en">My course (EN)</span><span class="multilang" lang="de">Mein Kurs (DE)</span> Add an image to the Course summary field (easiest to choose one from the Wikimedia repository) Download and save locally as privacy-export.php the "Test of exporting user data" form:  https://docs.moodle.org/dev/Privacy_API/Utilities#Test_of_exporting_user_data Run the following command: $ php privacy-export.php --userid=2 Open exported index file Navigate to Category ... > Course My course (EN) > data.json Confirm fullname field is "My course (EN)" Confirm the image you added to the course summary is displayed in the summary field

      When exporting data for a user using the privacy tool, some of the fields for exported course data aren't formatted correctly:

      • Full name containing multilang tags aren't filtered (similar to MDL-64695);
      • Summary containing files such as embedded images aren't preserved (similar to MDL-72153)

        1. MDL-72169_Test in master.png
          MDL-72169_Test in master.png
          157 kB
        2. MDL-72169_Test in v3.10.png
          MDL-72169_Test in v3.10.png
          157 kB
        3. MDL-72169_Test in v3.11.png
          MDL-72169_Test in v3.11.png
          161 kB
        4. MDL-72169 after.png
          MDL-72169 after.png
          1.16 MB
        5. MDL-72169 before.png
          MDL-72169 before.png
          36 kB

            pholden Paul Holden
            pholden Paul Holden
            Simey Lameze Simey Lameze
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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