Embedded images not displayed in LEAP2A imported content

Bug #675730 reported by David Mudrák
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Medium
Darryl Hamilton

Bug Description

During testing Mahara repository plugin in Moodle 2.0, I discovered that images embedded into a Moodle forum post (that is then exported via LEAP2A into Mahara) are not displayed in the created Mahara blog post.

If I export the post into leap2a.xml, the embedded image is exported into:

    <img src="portfolio:storedfile816" alt="" width="100" height="100" rel="enclosure"/>

and then again in the 'attachments' section into:

    <img rel="enclosure" src="portfolio:storedfile816"/>

the entry portfolio:storedfile816 and <link rel="related" href="portfolio:storedfile816"/> are created correctly.

However, the import code in Mahara relies on the exact argument order in the <img> tag and therefore only the img in attachments section is converted correctly. See import/leap/lib.php, private function fix_artefact_reference, the $match pattern.

To reproduce, your Moodle must be patched to fix MDL-23978.

Tags: leap2a
Changed in mahara:
milestone: none → 1.4.0
importance: Undecided → High
status: New → Triaged
Changed in mahara:
importance: High → Medium
Darryl Hamilton (lordp)
Changed in mahara:
assignee: nobody → Darryl Hamilton (lordp)
status: Triaged → In Progress
Darryl Hamilton (lordp)
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
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.