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

mimetypes for .rar and .7z files are missing

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.6.5, 2.7.2
    • Course, Files API
    • MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • m28_MDL-46985_7ZIP_RAR_MIME_types_missing
    • 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

    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

            matteo Matteo Scaramuccia
            jboulen Julien Boulen
            Marina Glancy Marina Glancy
            Damyon Wiese Damyon Wiese
            Dave Cooper Dave Cooper
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8/Sep/14