Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-664

Delivery of some mime types does not work in task element when apache uses gzip compression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 8.0
    • Fix Version/s: 9.0.0
    • Component/s: Course
    • Labels:
      None
    • Environment:

      Firefox

      Description

      How to reproduce

      • Configure a system with apache as webserver using GZIP module enabled
      • Make sure you have rules to exclude GZIP for already compressed mime types such as mp3 files
      • Create a course with a task element
      • Upload an mp3 file as task
      • As uses, try downloading the task
        => When using Firefox, the mp3 is broken (length does not match)

      The problem is that the link does not contain the filename.mp3 and thus the Apache gzip filter exclusion rule is not applied. It is a known Firefox bug that Firefox can not deal with mp3 files that are delivered gziped.

      Solution
      The solution is to add a method on the Link element to set the link name and to render the link name properly in the link: link_to_oo_link_component/linkname.mp3 The linkname.mp3 extension will not be used in anyway by OpenOLAT, it is just for the browser.

      When implementing the fix it must be made a quick check where this problem does also apply (please extend list here with found instances):

      • Single page file download

        Attachments

          Activity

            People

            • Assignee:
              srosse Stéphane Rossé
              Reporter:
              gnaegi Florian Gnägi
              Tester:
              Joël Krähemann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 31 minutes Time Not Required
                1h 31m