← Back to team overview

mahara-contributors team mailing list archive

[Bug 1953086] Re: Images in migrated page descriptions not displayed on a page

 

** Changed in: mahara/21.10
       Status: Confirmed => In Progress

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1953086

Title:
  Images in migrated page descriptions not displayed on a page

Status in Mahara:
  Fix Committed
Status in Mahara 21.04 series:
  Confirmed
Status in Mahara 21.10 series:
  In Progress
Status in Mahara 22.04 series:
  Fix Committed

Bug description:
  Upgrading from a site before Mahara 21.10 causes problems when images
  were added to the page description field. The URL is retained but the
  block ID is not added, therefore not displaying the image on the page.

  This was introduced in bug #1913386

  To replicate:

  1. Install fresh Mahara 20.04.
  2. Create a page and add an image to the page description. The URL will look something like http://DOMAIN/artefact/file/download.php?file=6&view=7&embedded=1&description=7
  3. Upgrade the site to 21.10 / main.
  4. View your page.

  Result:

  - Expected: The page description is now displayed in the block called 'Description' and the image is shown. The URL should look something like:
  http://DOMAIN/artefact/file/download.php?file=6&view=7&embedded=1&description=7&text=27 with the &text= at the end to reference the block in which the image has been embedded.
  - Actual: the page description is now displayed in the block called 'Description' but there is a broken image as the URL hasn't changed.

  Workaround for portfolios that can be edited:

  1. Edit the page.
  2. Click the 'Edit block' icon for the 'Description' block. You should see the image in the TinyMCE editor window.
  3. Save the block and the image will have the block reference added.

  This workaround is not possible for submitted pages. That's why we
  will need to provide an upgrade step.

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



References