src attribute on audio tags in rich text content are not updated during course copy
This behavior has been resolved and deployed to the production environment as of 6/05/24.
Description
When rich text content contains an audio tag where the src attribute is pointing to a course file and that content is copied between course, the src attribute is not updated to point to the migrated file in the destination course for the copy.
Expected Behavior
Instead the src attribute on audio tags should be updated during course copies when it is pointing to a course file.
Workaround
No workaround exists at this time.
Steps to Reproduce
Prerequisites: Two courses and an audio file.
-
Upload the audio file to the course files in one of the courses.
-
In the course with the audio file create a page and set the HTML on the page to the below, substituting the course and file id for :course_id and :file_id
<p><audio src="/courses/:course_id/files/:file_id/download" controls="controls">Your browser does not support the audio file</audio></p>
-
Copy the course with the file and page into the other course using the Copy a Canvas Course option on the Import Content page.
-
Check the HTML of the imported page and note that the src attribute on the audio tag is still pointing to the file in the original course.
Additional Info
LF-1565
Known issues indicate notable behaviors that have been escalated to the Canvas engineering team. Known issues are not a guarantee for an immediate resolution. This document is for informational purposes only and does not replace the Support process. If you are encountering the behavior outlined in this document, please ensure you have submitted a Support case (per your institution's escalation process) so Canvas Support can adequately gauge the overall customer impact and prioritize appropriately.