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

HTC files in packages are sending an improper content-type

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6, 1.6.1, 1.6.2, 1.6.3, 1.6.4, 1.7, 1.7.1, 1.7.2, 1.8, 2.0
    • Fix Version/s: 1.7.1, 1.8
    • Component/s: General, Resource
    • Labels:
      None
    • Affected Branches:
      MOODLE_15_STABLE, MOODLE_16_STABLE, MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE

      Description

      HTC files in packages return the wrong content-type (document/unknown) even when the Apache web-server is set to serve the correct content-type, this means that packages that rely on the very popular HTC files for scripting will not run the script and will most likely fail to work.

      I believe this is because of the way Moodle serves these files (they're proxied through a PHP). I believe the only change needed is to add .htc to filelib.php with the content-type of application/x-component.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              fickel Tom Hauser
              Tester:
              Nobody
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                17/Jan/07