Mahara 1.9 Fails to Record Correct Mime Types on Leap2 Import or Moodle Export

Bug #1329807 reported by Peter Friesen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
High
Unassigned
1.10
Confirmed
High
Unassigned
1.9
New
Undecided
Unassigned

Bug Description

We're running Moodle 2.6.2 and Mahara 1.9 on Linux with MySQL.

When a user opts to export a discussion forum post to Mahara in HTML format, the post turns up in the user's Content/Files/incoming folder, but it *fails to appear* for selection in the listing of files available through the "Some HTML" plugin. Downloading the file from the content area verifies that it actually has been written correctly, but even though it appears in the content it remains unavailable in the listing of file for selection in the "Some HTML" plugin. (Discussion posts that had been uploaded while we were running Mahara 1.8x *do* appear in that list of files--only forum posts exported since the Mahara 1.9 upgrade fail to appear.)

A look at the Artefact_File_Files table shows that the earlier exported posts were, under Mahara 1.8x, identified with a mime type of text/html, but that the posts appearing since our Mahara 1.9 upgrade are being mapped as application/x-director. [Changing that mime type to text/html in the table has the effect of making the content visible, as it should be, in the file selector.]

The problem also appears when a Leap2 file is imported into the system. While an imported *page* displays its associated imported content without any problems, the content itself shows the same mime problems: quicktime movies, pdf files, all seem to be misidentified, with the result that they appear in the content area, but cannot be selected for use on any other pages: the associated plugins ("PDF" and "Embedded Media") fail to show in their file selection windows that any pdf or mov files exist.

These problems were *not* at hand with our earlier Mahara 1.8x installation, and, insofar as both seem tied to the mapping of the files in the Artefact_File_Files table, both seem to share a common issue, pointing to the way that mime types get recorded in Mahara 1.9.

Revision history for this message
Peter Friesen (peter-friesen) wrote :

This report is probably a duplicate of https://bugs.launchpad.net/mahara/+bug/1318995 --The solution proposed there resolves the problems I make note of here.

tags: added: regression
Changed in mahara:
importance: Undecided → High
assignee: nobody → Son Nguyen (ngson2000)
status: New → Confirmed
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Hello Peter,

Just to clarify: When you apply the patch from bug #1318995 to your instance does that solve the problem or would a change still need to be made for it to work with .html files from Moodle?

Thanks
Kristina

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.