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

Data export file links are broken when names have special characters

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_35_STABLE

      Description

      To reproduce

      Setup
      1. Set up outgoing email for testing (e.g. mailcatcher)
      2. Enable the following Privacy admin settings
        • Contact the privacy officer
        • Automatic data export request approval
      3. Create a course with special characters in the course name (e.g. "# / \ > " < &")
      Replication steps
      1. Log in as a student enrolled in a course.
      2. Post to a forum. Make sure to add files/images and attachments in the forum post.
      3. Create a data export request.
      4. Run cron
      5. Download the data export archive.
      6. Extract the archive.
      7. Open index.html
      8. Navigate the tree to your data for your forum post.
      9. Click on the links to the files
      10. Expected: The selected file should be downloaded or rendered by the browser.
      11. Actual: You get a file not found error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              jpataleta Jun Pataleta
              Participants:
              Component watchers:
              Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m