Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAK-50554 Site Import Fails to Import Some Embedded Images #12937

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

st-manu
Copy link
Contributor

@st-manu st-manu commented Oct 1, 2024

During the import process, in the migration of links, it is checked whether the links are shortened, and then they are expanded. To do this, it checks if the link includes the string "http://bit.ly/ " or "/x/".

This check fails when we encounter an image inserted with its base64 encoding, a format in which images from the clipboard were pasted in previous versions of Sakai.

<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA... (rest of the base64 encoding)">

This string is very long and is highly likely to include "/x/". As a result, a large number of images from a variety of tools are lost.

https://sakaiproject.atlassian.net/browse/SAK-50554

@ottenhoff ottenhoff merged commit f8c55af into sakaiproject:master Oct 2, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants