Lessons: siteId replacement fails after importing content if destination siteId is part of the source siteId

Description

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:

  1. The system replaces GRA_12409_2023 with GRA_12409_2023_DTU.

  2. 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.

  3. This repeats indefinitely.

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

Priority

Components

Assignee

Reporter

Created 2 days ago
Updated yesterday