Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
The repository configuration tool on https://mariadb.org/download/ (Repository config tab) generates broken repository URLs for three mirrors. It looks like a recurrence of MDBF-296.
What happens
downloads.mariadb.org/rest-api/repo-instructions/ joins repo/... directly onto the mirror's mirror_url. These three mirrors are registered without a trailing slash, so the path is glued onto the host or directory:
| Mirror | mirror_url | Generated URIs: line (Ubuntu 24.04, 11.8) |
|---|---|---|
| SPD Hosting LTD - Rosh Haayin (spd) | https://mariadb.spd.co.il | https://mariadb.spd.co.ilrepo/11.8/ubuntu |
| Alwyzon - Vienna (alwyzon) | https://mirror.alwyzon.net/mariadb | https://mirror.alwyzon.net/mariadbrepo/11.8/ubuntu |
| Hosthink - Chisinau (hosthink) | https://mirror.hosthink.net/mariadb | https://mirror.hosthink.net/mariadbrepo/11.8/ubuntu |
The correct URL works, for example https://mariadb.spd.co.il/repo/11.8/ubuntu/dists/noble/Release returns 200. The other 81 mirror URLs in mirror-list-and-closest/?distro_type=deb&repo_series=11.8 end in a slash and are fine.
Reproduce: https://mariadb.org/download/?t=repo-config&d=24.04+%22noble%22&v=11.8&r_m=spd
Suggested fix
- Fix the three mirror_url entries (add the trailing slash).
- To keep it from coming back: join the path with a separator in the repo-instructions code (and anywhere else mirror_url is concatenated), or normalize mirror_url to end in / when a mirror is added.
MDBF-296was fixed in 2022, but new mirrors registered without a trailing slash break it again.
Reported by a user on GitHub: https://github.com/mariadb-corporation/mariadb-docs/issues/1386 (tracked internally as a docs ticket, which is closed as handed over to this one).
Attachments
Issue Links
- relates to
-
MDBF-296 repotool some mirrors missing tailing slash in config causing incorrect urls (deb and rpm)
-
- Closed
-