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

Wrong content type when exporting user tours

XMLWordPrintable

    • MOODLE_39_STABLE
    • MOODLE_310_STABLE, MOODLE_39_STABLE
    • Hide
      1. Login as admin
      2. Navigate to Appearance > User tours in site administration
      3. Click Import tour
      4. Upload tour_export_2_1618432513.json and press Save changes
      5. Press User tours in the breadcrumbs to navigate back to the tours listing
      6. For the Dashboard tour you just imported press Export tour
      7. Confirm that your web browser prompts you to download the tour as a JSON file:
      8. Confirm (via web browser developer tools) that the response headers for the downloaded tour contain:

        Content-Type: application/json
        

      Show
      Login as admin Navigate to Appearance > User tours in site administration Click Import tour Upload tour_export_2_1618432513.json and press Save changes Press User tours in the breadcrumbs to navigate back to the tours listing For the Dashboard tour you just imported press Export tour Confirm that your web browser prompts you to download the tour as a JSON file: Confirm (via web browser developer tools) that the response headers for the downloaded tour contain: Content-Type: application/json

      When exporting user tours it has ICS format instead of JSON

      1. Login as administrator
      2. Navigate to Site administration -> Appearance -> User Tours
      3. Click on Tour repository
      4. Download one of the tours
      5. Navigate to Site administration -> Appearance -> User Tours
      6. Click on Import tour and upload the downloaded tour
      7. Add 'Ensure that the newly imported tour works as expected.'
      8. Click on the tour Export tour icon for the tour you just imported or some existing tour.
      9. The exported file will have ics extension which is not correct

      Looks like bug was from beginning https://github.com/moodle/moodle/blame/511a87f5fc357f18a4c53911f6e6c7f7b526246e/admin/tool/usertours/classes/manager.php#L448

        1. MDL-71338_Test Passed.PNG
          146 kB
          Gladys Basiana
        2. MDL-71338-1.png
          53 kB
          Paul Holden
        3. MDL-71338-2.png
          56 kB
          Paul Holden
        4. tour_export_2_1618432513.json
          2 kB
          Paul Holden

            pholden Paul Holden
            ilyatregubov Ilya Tregubov
            Michael Hawkins Michael Hawkins
            Jake Dallimore Jake Dallimore
            Gladys Basiana Gladys Basiana
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 12 minutes
                3h 12m

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