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

Downloads using rest-api through file-name key failed

    XMLWordPrintable

Details

    Description

      Based on https://mariadb.com/kb/en/download-mariadb-through-rest-api-protocol/
      comment

      If you use file-id you get the file. If you use file-name, you get 500 Internal Server Error.
      

      Going to https://downloads.mariadb.org/rest-api/mariadb/10.6.3/ we get:

      {"release_data": {"10.6.3": {"release_id": "10.6.3", "release_name": "MariaDB Server 10.6.3", "date_of_release": "2021-07-06", "release_notes_url": "https://mariadb.com/kb/en/mariadb-1063-release-notes/", "change_log": "https://mariadb.com/kb/en/mariadb-1063-changelog/", "files": [{"file_id": 12490, "file_name": "mariadb-10.6.3-win32.msi", "package_type": "MSI Package", "os": "Windows", "cpu": "x86", "checksum": {"md5sum": "9821902070649d1c1540ddb013858357", "sha1sum": "0ccd75d8605622186798f1f2b08ca50ba6b558d9", "sha256sum": "f8b1612ef06f30bac66afaaca7e6da252849ca64af0ceff5eefcdcdae164bde7", "sha512sum": "f83922a7f337559f5fbe5151a0d29bedaa8fe87e3b8e406c08219a1c800e5596c2f3a2c23441b902a8460d3718d40b5bd248e58bdf0830825032dbc069815708"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUdgAKCRDLywgqG7lD\n2y0pAJ0UMEmcrcDw9vOj3EpX82TK3VafGACgv4OjZvn29VrDV+Q7RSIO96IETew=\n=6h+s\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.msi/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.msi/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.msi"}, {"file_id": 12493, "file_name": "mariadb-10.6.3-winx64.msi", "package_type": "MSI Package", "os": "Windows", "cpu": "x86_64", "checksum": {"md5sum": "6c3d7e2f83028280724f980cff3cde5a", "sha1sum": "83077350d5e8cc3a209372a6e0f256fbabe76d77", "sha256sum": "92d46f3b3e89ae841308b06acc20eb41076ed202068b4680bdf40b89f0665e52", "sha512sum": "5c438acc29feccf0411d371ad28b0b0e94ebb78d121dce35bd1f1cc13087dc50430135e82b01d57b7302b49520704a7a165098f6ea9d8528674756867659b3ca"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUgwAKCRDLywgqG7lD\n25n1AKCVXEhWFPCRwxFMKHXDkR//at0SggCfb/xvcKyBGjQPgtU4eIoWqirkNY8=\n=Lirq\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.msi/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.msi/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.msi"}, {"file_id": 12488, "file_name": "mariadb-10.6.3.tar.gz", "package_type": "source tar.gz file", "os": "Source", "cpu": " ", "checksum": {"md5sum": "c12e528f552243902a660d5826308649", "sha1sum": "4705158074b49fd05096e7eec6d452c3105a5c3b", "sha256sum": "5bc125606af5ec1fda80f594c1ddfacef8b305c158ecf8b1ca7a3f01cd0b18db", "sha512sum": "2799de07b0c7d166a6a6530775f7ffcb0561715f5a61874f5c43c2866c5c409683c6442cb45f989bff37dc23690239df7f14a3c16e0d5ac0543e01398411cac2"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOSIAAKCRDLywgqG7lD\n23elAKCJ1en5AlLjqsFZwnYwlcuWlq7FbQCgyAjb25IRU7utcObJEDI5krH407A=\n=NV3c\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3.tar.gz/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3.tar.gz/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3.tar.gz"}, {"file_id": 12487, "file_name": "mariadb-10.6.3-linux-systemd-x86_64.tar.gz", "package_type": "gzipped tar file", "os": "Linux", "cpu": "x86_64", "checksum": {"md5sum": "bccfa383d8ba8ae2fbf5a1bfd5c71f04", "sha1sum": "2cb4f7e43248ba80f1347cfb85facb2501e1d461", "sha256sum": "3bcfadba0083b6e97ce6c6350091b25bf4e9a91774dfa2a1c1f9e1abcd80fb6e", "sha512sum": "6992b7b040f0b8d272121a9ad70b8916156d6cf71d6fa30d728b8c70d2650df0c08cd170a78cccd1df596031579c3b6768b6159ac7bf9c0136a2ec298dff9030"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOSCgAKCRDLywgqG7lD\n25ZfAKC0ZC/5FPYgzxnW0hTLbSV4Mehp6wCgwfplaRU4Uj9/iQYfgs/cx9GZfkM=\n=Xobr\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-linux-systemd-x86_64.tar.gz/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-linux-systemd-x86_64.tar.gz/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-linux-systemd-x86_64.tar.gz"}, {"file_id": 12489, "file_name": "mariadb-10.6.3-win32-debugsymbols.zip", "package_type": "ZIP file", "os": "Windows", "cpu": "x86", "checksum": {"md5sum": "6fb3ceefcbf8765385e7852022bceccd", "sha1sum": "5410f13c2f640a1fb4295004443bcb877ce060f3", "sha256sum": "bded4eaf254c4939e546ff28e026095821ab6e83d1ae50f2858edc821e015d8b", "sha512sum": "35dce274f2a7c2b9a93edb3d6a930e7f01cf8b886c4ca67ab74645c62500385bea545a065e149d83da98a40648bd0bc7a3a168fd59a2d6048d22c64a0a35f1ab"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUdwAKCRDLywgqG7lD\n274bAJ92Z+zte1wMhkAhSCZr7VhMbFNyAACgwgtyX8hWD6D7VBaDfYd1AsHszdA=\n=l7zl\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32-debugsymbols.zip/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32-debugsymbols.zip/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32-debugsymbols.zip"}, {"file_id": 12491, "file_name": "mariadb-10.6.3-win32.zip", "package_type": "ZIP file", "os": "Windows", "cpu": "x86", "checksum": {"md5sum": "de6a94565eb5f9745c9dffe0cf1c87fb", "sha1sum": "a388fc522a38782384d47c4852887a5f760b88c1", "sha256sum": "6d0eea794e333e09734dd4576ca9d3768ed7c9a334bb0f5cd49753ba9a1a6176", "sha512sum": "792fd711b49da2e6f4d093f64d54b8a98212d5426f658ba3fa8bbc09def9a0be73cd261a0c65c0a386d5bd0a79a34b95d5cb74d835b71ed70e1d09f9e0601d4a"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUdgAKCRDLywgqG7lD\n2+2nAJ9KSnfXjltzOtMSsQ5FXpONiM7jmACgmCnkHCn2YqBOtF/wJurpCXrjXIE=\n=OzOo\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.zip/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.zip/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-win32.zip"}, {"file_id": 12492, "file_name": "mariadb-10.6.3-winx64-debugsymbols.zip", "package_type": "ZIP file", "os": "Windows", "cpu": "x86_64", "checksum": {"md5sum": "16f9de3857d8f82fd4f5f7d08a2e8ae3", "sha1sum": "9c10586d193d952e5275dec3d8b8cc5f86d53dbe", "sha256sum": "e8d6f347a1318db439d7e815f54d0a3432c75e7402a3c2d96ab25cd8c8fe1590", "sha512sum": "ee7285ff092ebe45acc320354c1f64a040e76f96fe7cfd685956bd684fa164756742e14126967b20b9a152f0131d6f996acf8d65269df15c056fe1a2299519f8"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUhAAKCRDLywgqG7lD\n2w/+AKCuOFU8gfSC0wIuRZqT72x/koxUPACgoEWGQu/dpZXYgeIOFcu6uUEL7+o=\n=aV1R\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64-debugsymbols.zip/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64-debugsymbols.zip/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64-debugsymbols.zip"}, {"file_id": 12494, "file_name": "mariadb-10.6.3-winx64.zip", "package_type": "ZIP file", "os": "Windows", "cpu": "x86_64", "checksum": {"md5sum": "dda940571832d279a84aa09538fa307f", "sha1sum": "b25be7cb17d9a3fc4a64f9d54fd209f645b96ebe", "sha256sum": "c4fb2a71d6484d7eab9dfa7409d5c7461a41522aefce6b9699b77cb4a80a2d1a", "sha512sum": "bc4f9d642452b67af866a105653729807f1d998a0c6dbc649f52eed7b10118815ca73c380be2f539140aa058278297163406be6c6698beec4b03adbc7241b688"}, "signature": "-----BEGIN PGP SIGNATURE-----\n\niF0EABECAB0WIQQZk2nlQEvV/H0v5DvLywgqG7lD2wUCYOOUgwAKCRDLywgqG7lD\n2y3VAKDRXZPJpSwQSFFUdlqTk2aizZMePQCgpyFTFIV3Dwi3HPe/BPME1E+JheI=\n=nimu\n-----END PGP SIGNATURE-----\n", "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.zip/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.zip/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-winx64.zip"}, {"file_id": 12484, "file_name": "galera-26.4.8", "package_type": null, "os": null, "cpu": "x86", "checksum": {"md5sum": null, "sha1sum": null, "sha256sum": null, "sha512sum": null}, "signature": null, "checksum_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/galera-26.4.8/checksum/", "signature_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/galera-26.4.8/signature/", "file_download_url": "http://downloads.mariadb.org/rest-api/mariadb/10.6.3/galera-26.4.8"}]}}}
      

      Testing
      To download the file using 'file-name' now is possible: mariadb-10.6.3-linux-systemd-x86_64.tar.gz one can go to: https://downloads.mariadb.org/rest-api/mariadb/10.6.3/mariadb-10.6.3-linux-systemd-x86_64.tar.gz and download it
      Download using 'file-id' (based on comment above it was possible) gives http 500 error
      for above case: https://downloads.mariadb.org/rest-api/mariadb/10.6.3/12487

      Should download using 'file-id' be supported, as it was?

      Attachments

        Issue Links

          Activity

            People

              andreia.hendea Andreia Hendea
              anel Anel Husakovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: