Resolve relative icon URLs when attaching web app icons #273

Merged
raucao merged 1 commits from fix/app-catalog-relative-icon-url into master 2026-11-23 19:10:22 +00:00
1 Commits
Author SHA1 Message Date
raucao 07b7dc9cec Resolve relative icon URLs when attaching web app icons
CI / Test (pull_request) Successful in 1m1s
Release Drafter / Update release notes draft (pull_request) Successful in 3s
AppCatalogManager::UpdateMetadata built remote icon download URLs with
naive string concatenation, so a relative src such as
"./apple-touch-icon.png" produced a URL with a dot segment
(https://host/./apple-touch-icon.png). Servers that do not normalise dot
segments (e.g. 5apps/openresty) answer those with 404, so the icon was
never attached.

Resolve icon URLs against the web app URL with URI.join (RFC 3986), which
collapses dot segments and handles bare and absolute URLs correctly.

Bump manifique to ~> 1.1.1, which fixes the same class of bug for relative
web app manifest URLs ("./manifest.webmanifest"), and add service specs
covering manifest metadata loading and icon URL resolution.
2026-11-23 23:07:48 +04:00