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

Forum post with attachment export to Google drive broken links

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.2, 3.5, 3.6.4, 3.7, 3.7.5, 3.8.2
    • 3.7.6, 3.8.3
    • Forum
    • MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-62403-master
    • Hide

      Prerequisites

      1. Your site must be set up with an OAuth 2 Google service and the Google Drive portfolio and file download portfolio enabled. You can use localhost when setting this up in the google developer console. I.e. localhost/yoursite/admin/oauth2callback.php works fine.

      Testing

      1. Please complete the testing instructions for each of the following QA tests. In each case you can ignore any parts asking to test anything other than the Google Drive export.
        1. MDLQA-311 - Forum
        2. MDLQA-308 - Assign
        3. MDLQA-309 - Chat
        4. MDLQA-312 - Glossary
        5. MDLQA-310 - Database (Note: this one refers to file export but just replace file export with Google Drive export)
      2. CONFIRM that when you export into the Google Drive it creates a new parent directory for each export that all of the files for that export get added to. The directory name should be in the format portfolio-export-<module name>-<timestamp> e.g. portfolio-export-forum-1558669163
      Show
      Prerequisites Your site must be set up with an OAuth 2 Google service and the Google Drive portfolio and file download portfolio enabled. You can use localhost when setting this up in the google developer console. I.e. localhost/yoursite/admin/oauth2callback.php works fine. Testing Please complete the testing instructions for each of the following QA tests. In each case you can ignore any parts asking to test anything other than the Google Drive export. MDLQA-311 - Forum MDLQA-308 - Assign MDLQA-309 - Chat MDLQA-312 - Glossary MDLQA-310 - Database (Note: this one refers to file export but just replace file export with Google Drive export) CONFIRM that when you export into the Google Drive it creates a new parent directory for each export that all of the files for that export get added to. The directory name should be in the format portfolio-export-<module name>-<timestamp> e.g. portfolio-export-forum-1558669163

    Description

      When exporting a forum post that has an attached file to Google drive the generated post.html file has broken links to the attached files. The links in the HTML refer to files in the "site_files" directory however the attached files are exported in the same directory as the HTML file.

      This was discovered in MDLQA-12013

      Attachments

        Issue Links

          Activity

            People

              ryanwyllie Ryan Wyllie
              ryanwyllie Ryan Wyllie
              Simey Lameze Simey Lameze
              Jake Dallimore Jake Dallimore
              Janelle Barcega Janelle Barcega
              Adrian Greeve, Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/May/20

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 4 hours, 12 minutes
                  2d 4h 12m