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

Add missing yaml filetype

XMLWordPrintable

    • MOODLE_311_STABLE, MOODLE_401_STABLE, MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • M401-MDL-78632
    • Hide
      1. *BEFORE* upgrading, log in as a student
      2. Navigate to your Dashboard
      3. Upload the attached yaml files (swagger.yaml swagger.yml)
      4. Connect to your database and run the following query:

        SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' ORDER BY id DESC LIMIT 5;
        

      5. Run the upgrade
      6. Navigate to Site admin > Server > File types
      7. Verify that the yml and yaml extensions are present as "Standard" file types
      8. Re-run the above DB query
        1. Confirm that the swagger files now have a mimetype of application/yaml
        2. Confirm that none of the other files have been modified
      Show
      * BEFORE * upgrading, log in as a student Navigate to your Dashboard Upload the attached yaml files ( swagger.yaml swagger.yml ) Connect to your database and run the following query: SELECT id, filename, mimetype FROM mdl_files WHERE filename != '.' ORDER BY id DESC LIMIT 5; Run the upgrade Navigate to Site admin > Server > File types Verify that the yml and yaml extensions are present as "Standard" file types Re-run the above DB query Confirm that the swagger files now have a mimetype of application/yaml Confirm that none of the other files have been modified

      When uploading a yaml file with a .yml file extension, Moodle does not accept it as a valid filetype even though the Content-Type is defined as text/plain

        1. MDL-78632.png
          MDL-78632.png
          577 kB
        2. swagger.yaml
          17 kB
        3. swagger.yml
          17 kB

            marcusboon Marcus Boon
            marcusboon Marcus Boon
            Brendan Heywood Brendan Heywood
            Andrew Lyons Andrew Lyons
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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

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