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

GDPR data export objects with ? (question mark) in the title are not exported correctly under Windows server OS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.10.3
    • Fix Version/s: None
    • Component/s: Privacy
    • Labels:
      None
    • Affected Branches:
      MOODLE_310_STABLE

      Description

      Moodle course titles and forum post titles containing a question mark are resulting in content not exported correctly in GDPR data export requests on Windows servers.

      Taking a look inside the logs shows that this results in moodle trying to create subfolders with a question mark in the folder name in the temp folder which results in the file not being saved correctly (line 97 of \privacy\classes\local\request\moodle_content_writer.php: call to core_privacy\local\request\moodle_content_writer->write_data()). 

      This is caused by question marks being invalid in Windows folder and file names.

      Unfortunately the overall processing succeeds and the user gets his export zip file. The problematic contents are missing however.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sbrenner Simon Brenner
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: