Uploaded image for project: 'MariaDB Foundation Development'
  1. MariaDB Foundation Development
  2. MDBF-1267

Repository config tool: mirrors without a trailing slash produce broken repo URLs (recurrence of MDBF-296)

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Downloads

    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

      1. Fix the three mirror_url entries (add the trailing slash).
      2. 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-296 was 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

          Activity

            People

              vlad.radu Vlad Radu
              stefan.hinz Stefan Hinz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: