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

mimetypes for .rar and .7z files are missing

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.1
    • Fix Version/s: 2.6.5, 2.7.2
    • Component/s: Course, Files API
    • Labels:
    • Testing Instructions:
      Hide

      (difficulty: easy, requires teacher access to a course and optionally 7-Zip and RAR real files; otherwise, it is possible to create zero-byte files with the required extensions)

      BEFORE upgrade

      1. Upload on a course a 7-Zip file as resource file
      2. Upload on a course a RAR file as resource file

      AFTER upgrade

      1. Check that the just upload 7-Zip resource has the "archive" icon
      2. Check that the just upload RAR resource has the "archive" icon
      3. Check that those files have correct mimetype in the DB table mdl_files (correct = application/x-7z-compressed or application/x-rar-compressed)
      4. Upload on a course a 7-Zip file as resource file and check for the "archive" icon
      5. Upload on a course a RAR file as resource file and check for the "archive" icon
      Show
      (difficulty: easy, requires teacher access to a course and optionally 7-Zip and RAR real files; otherwise, it is possible to create zero-byte files with the required extensions) BEFORE upgrade Upload on a course a 7-Zip file as resource file Upload on a course a RAR file as resource file AFTER upgrade Check that the just upload 7-Zip resource has the "archive" icon Check that the just upload RAR resource has the "archive" icon Check that those files have correct mimetype in the DB table mdl_files (correct = application/x-7z-compressed or application/x-rar-compressed) Upload on a course a 7-Zip file as resource file and check for the "archive" icon Upload on a course a RAR file as resource file and check for the "archive" icon
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      m28_MDL-46985_7ZIP_RAR_MIME_types_missing

      Description

      • Steps to reproduce:
        1. upload on course a rar file as resource file
        2. upload on course a 7z file as resource file
      • Actual result:
        • the 2 archives have an "unkown" icon
      • Expected result:
        • the 2 archives should have an "archive" icon

        Attachments

          Activity

            People

            Assignee:
            matteo Matteo Scaramuccia
            Reporter:
            jboulen Julien Boulen
            Peer reviewer:
            Marina Glancy
            Integrator:
            Damyon Wiese
            Tester:
            Dave Cooper
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Sep/14