Public bug reported:

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.

** Affects: mahara
     Importance: High
         Status: Confirmed

** Affects: mahara/21.04
     Importance: High
         Status: Confirmed

** Affects: mahara/21.10
     Importance: High
         Status: Confirmed

** Affects: mahara/22.04
     Importance: High
         Status: Confirmed

** Also affects: mahara/20.10
   Importance: Undecided
       Status: New

** Also affects: mahara/21.04
   Importance: Undecided
       Status: New

** Also affects: mahara/21.10
   Importance: Undecided
       Status: New

** Also affects: mahara/22.04
   Importance: High
       Status: Confirmed

** Changed in: mahara/21.10
       Status: New => Confirmed

** Changed in: mahara/21.04
       Status: New => Confirmed

** Changed in: mahara/20.10
       Status: New => Confirmed

** Changed in: mahara/21.10
   Importance: Undecided => High

** Changed in: mahara/21.04
   Importance: Undecided => High

** Changed in: mahara/20.10
   Importance: Undecided => High

** Changed in: mahara/22.04
    Milestone: None => 22.04.0

** Changed in: mahara/21.10
    Milestone: None => 21.10.1

** Changed in: mahara/21.04
    Milestone: None => 21.04.3

** Changed in: mahara/20.10
    Milestone: None => 20.10.4

** No longer affects: mahara/20.10

** Description changed:

  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: 
+ - 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.

-- 
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:
  Confirmed
Status in Mahara 21.04 series:
  Confirmed
Status in Mahara 21.10 series:
  Confirmed
Status in Mahara 22.04 series:
  Confirmed

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


_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to