Embedded Images in text box are not linked properly after Leap export/import

Bug #1520328 reported by Kristina Hoeppner
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mahara
Expired
Medium
Unassigned

Bug Description

tested on Mahara 15.10 (but most likely also valid for 15.04)

When an internal Mahara image is added to a text box in TinyMCE via the image button and the page is exported, the image itself is not exported. I suspect that the export doesn't recognize that it's an internal Mahara image like it does when you have an image in an image block.

It would also need to be checked if that's the case for journal entries, page descriptions and other places where you can display an image in TinyMCE.

We are already aware of the problem and know how to solve it.

Tags: export leap
Revision history for this message
Aaron Wells (u-aaronw) wrote :

Hi Kristina,

Could you clarify what you mean by an "internal Mahara image"? Do you mean an embedded image using the TinyMCE image embedder? Or do you mean one of the image files that ships with Mahara, like the "powered by Mahara" logo? https://mahara.org/theme/raw/static/images/powered_by_mahara.png

Cheers,
Aaron

Revision history for this message
Aaron Wells (u-aaronw) wrote :

Also, is this in LEAP or HTML export?

tags: added: html
tags: added: leap
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

We used Leap2A. And I mean one of the image files uploaded to Mahara.

Revision history for this message
Aaron Wells (u-aaronw) wrote :

To replicate:

1. Create a page with a text block
2. Use the TinyMCE image tool to pick one of the images from your Mahara files area and embed it in the text block.
3. Export the text block page to a Leap2a file
4. Delete the page and the image file from your Mahara portfolio
5. Import the Leap2a file

Expected result: You'll have a new copy of the page, and the image file, and the image will display correctly in the text box block
Actual result: You have a new copy of the page, and the image file, BUT the image does not display correctly in the text box block. Instead there is a broken link.

summary: - Images in text box are not exported
+ Embedded Images in text box are not linked properly after Leap
+ export/import
tags: removed: html
Revision history for this message
Aaron Wells (u-aaronw) wrote :

In fixing this, it should be noted that you also need to test for whether the embedded image is visible to other users:

1. Share the page with another user (or with "Public" or "Registered users")
2. View the page as another user and see if the image displays properly.

A user's permission to view a page is currently tracked via several different tables, at least one of which must have an appropriate record:

 - artefact_attachment: For classic "attachments", like those on notes, blog entries, and comments
 - view_artefact: For artefacts displayed directly by selection in a block (e.g. the image block)
 - artefact_file_embedded: For images embedded in another artefact's rich text fields

The import process must populate any of these that are appropriate, in order for it to work correctly.

Revision history for this message
Sam Taylor (samwisefox) wrote :

Hi - I hope this is the correct place to post, but I'm noticing that images in a text block exported from 15.04 and imported into 16.04 are not displaying.

Changed in mahara:
status: Confirmed → Incomplete
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

I can't replicate the problem anymore on a 15.10 or 16.04.

Sam, we fixed a number of Leap2A issues in 15.10 including the correct saving of images. These patches are not on Mahara 15.04 and that's probably why you are having problems. Can you upgrade your site before you do the export?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Mahara because there has been no activity for 60 days.]

Changed in mahara:
status: Incomplete → Expired
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.