2021-12-02 23:59:38 |
Kristina Hoeppner |
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.
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. |
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. |
|