Tool to update URLs to internal artefacts etc. in text boxes

Bug #1717379 reported by Kristina Hoeppner
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Confirmed
Wishlist
Unassigned

Bug Description

Data in text boxes is stored serialized. Thus, when wanting to make changes, it's not as straight forward as simply replacing an old URL with a new URL. Changes are necessary when an institution moves to a new URL for its Mahara site. Any images that have been placed into text boxes, description fields, journal entries, i.e. anything with TinMCE will have full URLs listed. The wwwroot part of them will need to be changed for the new URL. However, since the image was not embedded via the image block but as an image within text, Mahara doesn't re-write the URL automatically.

The same applies to links to other artefacts, pages or collections in a text box.

Thus, a tool would be nice in for the "text" plugin where an admin can provide the old wwwroot and the new one - the latter already pre-filled - and can then automatically convert all serialized data in one go rather than needing to adapt an upgrade script.

An easy site admin tool would be beneficial as this query had come up recently a few times and many Mahara instances will need to move from http to https and change links so that there aren't any mixed-content warnings.

For more info, please see https://mahara.org/interaction/forum/topic.php?id=8031#post32261

See bug #1717380 for the query around relative vs. absolute paths.

description: updated
Robert Lyon (robertl-9)
Changed in mahara:
milestone: 18.04.0 → 18.10.0
Changed in mahara:
milestone: 18.10.0 → none
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.