← Back to team overview

mahara-contributors team mailing list archive

[Bug 1364609] A change has been merged

 

Reviewed:  https://reviews.mahara.org/4547
Committed: http://gitorious.org/mahara/mahara/commit/710fefff17b82efd7126c59b7d094739cee7bfbc
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    15.04_STABLE

commit 710fefff17b82efd7126c59b7d094739cee7bfbc
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Tue Mar 31 12:43:15 2015 +1300

Allowing video/x-ms-asf be a valid .wmv mimetype (Bug 1364609)

The video/x-ms-asf mimetype is valid for .asf, .wmv and .wma files
but as we can't map more than one extension to the same mimetype I've
added a little hack allowing the .wmv and .wma extensions to also
include the video/x-ms-asf mimtype in the list of valid mimetypes.

Change-Id: I706d86c9bc0c5d0c0eb6ab0a09b1f16208557b00
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1364609

Title:
  Problem with windows wmv files having filetype video/x-ms-asf

Status in Mahara ePortfolio:
  In Progress

Bug description:
  Sometimes windows files that have the wmv (or wma) extension are being
  saved in the artefact_file_files table as mimetype video/x-ms-asf
  rather than video/x-ms-wmv (or audio/x-ms-wma).

  This means you can't add them to a video (or audio) block.

  Also for some reason, which I'm yet to work out, sites  can have data
  where a wmv video with mimetype video/x-ms-asf is connected to an
  internalmedia block.

  I'm not sure if they had the correct mimetype of video/x-ms-wmv in the
  past and somehow the mimetype changed or whether the mahara system
  allowed them to  connect files with mimetype video/x-ms-asf.

  
  But as there can be bad existing data on a site it needs to be fixed up pretty soon so that more bad data is created.

  Looking at a myportfolio site there were 11,200 internal media blocks
  and 2,500 of them had a connection to a wmv file that had video/x-ms-
  asf as the mimetype (about 1/5th)

  So it seems to be more than an isolated incidence.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1364609/+subscriptions


References