mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #09667
[Bug 1026275] Re: Imported content from Moodle stored as text/plain instead of text/html
I built a specific test case for the behaviour of both finfo() and
mime_content_type() on RHEL6 and OS X 10.8, and it looks like this is
something specific to RHEL6.
On OS/X 10.8, a downloaded post.html file reports the following mime type:
"text/html; charset=us-ascii"
On RHEL6, it reports this:
"text/plain; charset=us-ascii"
Here's a dir listing of /usr/share/misc in case it helps you track down
the issue:
[darren@ ~]$ cd /usr/share/misc
[darren@ misc]$ ls -l
total 2348
-rw-r--r-- 1 root root 596741 Sep 5 2011 magic
-rw-r--r-- 1 root root 1794600 Sep 5 2011 magic.mgc
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/1026275
Title:
Imported content from Moodle stored as text/plain instead of text/html
Status in Mahara ePortfolio:
Incomplete
Bug description:
When configuring a Mahoodle install, exported content from forum,
blog, and wiki modules appears to be stored in Mahara's database (in
artefact_file_files) with the filetype text/plain, rather than
text/html. This prevents users from embedding the imported content as
an HTML artefact within a page in Mahara (it instead has to be added
as a downloadable file).
This appears to be finfo() working as expected, reading the contents
of the file and not seeing opening HTML tags; however, downloading
imported content from the incoming folder in Mahara and re-uploading
it appears to properly set the mimetype correctly to text/html with no
change to the file's contents.
Version information:
Moodle 2.2.1
Mahara 1.5.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1026275/+subscriptions
References