Skip to content

fix: SVG image not displayed on Links portlet - EXO-88864 - #852

Merged
Jihed525 merged 1 commit into
stable/7.2.x-exofrom
backportstable-88864
Jul 31, 2026
Merged

fix: SVG image not displayed on Links portlet - EXO-88864#852
Jihed525 merged 1 commit into
stable/7.2.x-exofrom
backportstable-88864

Conversation

@Jihed525

Copy link
Copy Markdown
Contributor

Backport of #849 to stable/7.2.x-exo.

Prior to this change, link icons were always stored and served as "image/png", regardless of the uploaded file type. An SVG icon was therefore served with a wrong content type and couldn't be rendered by the browser, so no image appeared on the link item.

The icon is now stored with the real mime type and file name from the uploaded resource, and served with that content type (falling back to image/png when unknown).

Prior to this change, link icons were always stored and served as
"image/png", regardless of the uploaded file type. An SVG icon was
therefore served with a wrong content type and couldn't be rendered by
the browser, so no image appeared on the link item.

The icon is now stored with the real mime type and file name from the
uploaded resource, and served with that content type (falling back to
image/png when unknown).

(cherry picked from commit c8ae01c)
@Jihed525
Jihed525 requested review from ahamdi and hakermi July 31, 2026 14:28
@Jihed525 Jihed525 self-assigned this Jul 31, 2026
@Jihed525
Jihed525 enabled auto-merge (rebase) July 31, 2026 14:28
@Jihed525
Jihed525 merged commit 72547c5 into stable/7.2.x-exo Jul 31, 2026
8 checks passed
@Jihed525
Jihed525 deleted the backportstable-88864 branch July 31, 2026 14:33
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants