Lessons: siteId replacement fails after importing content if destination siteId is part of the source siteId
GENERAL
TESTING
GENERAL
TESTING
Description
Activity
Show:

Automation for Jira yesterday
A pull request has been created, "SAK-51154 Lessons: siteId replacement fails after importing content if destination siteId is part of the source siteId", you can see it at https://github.com/sakaiproject/sakai/pull/13453
Details
Details
Priority
Affects versions
Components
Assignee
Reporter
Created 2 days ago
Updated yesterday
When migrating content from one site to another, if the destination siteIs (e.g., GRA_12409_2023) is contained within the source siteId (e.g., GRA_12409_2023_DTU), the replacement process partially substitutes the id multiple times, resulting in links pointing to GRA_12409_2023_DTU_DTU_DTU_DTU_DTU...
Process:
The system replaces GRA_12409_2023 with GRA_12409_2023_DTU.
In another iteration, it detects GRA_12409_2023 as the source siteId (even though it is now GRA_12409_2023_DTU) and replaces it again, leading to GRA_12409_2023_DTU_DTU.
This repeats indefinitely.