Skip to content

download.md: build SHA-512/signature links from checksum-root - #186

Open
arnavsharma990 wants to merge 1 commit into
apache:masterfrom
arnavsharma990:fix-185-download-checksum-links
Open

arnavsharma990 wants to merge 1 commit into
apache:masterfrom
arnavsharma990:fix-185-download-checksum-links

Conversation

@arnavsharma990

Copy link
Copy Markdown

Summary

The SHA-512 and Signature columns on the download page were built from release.artifact-root, so for every mirror-served release they pointed at the dyn/closer.lua mirror selector and returned an HTML mirror-selection page instead of the file. Every release file already defines checksum-root for exactly this purpose, but no template read it. This PR switches the two columns to release.checksum-root and leaves the Archive column on release.artifact-root.

Fixes #185.

Changes

  • download.md:51-52: .sha512 / .asc hrefs now use {{release.checksum-root}} instead of {{release.artifact-root}}. Two lines, no other page changes.

Verification

  • curl before: .../dyn/closer.lua/nuttx/12.12.0/apache-nuttx-12.12.0.tar.gz.sha512200 text/html, ~21 KB mirror-picker page.
  • curl after (canonical form now generated): https://downloads.apache.org/nuttx/12.12.0/apache-nuttx-12.12.0.tar.gz.sha512200 text/plain, 158 bytes (the hash); .asc200 text/plain, 833-byte PGP signature.
  • Simulated the Liquid output for all 27 Apache releases: generated URLs resolve under each release's checksum-root (e.g. .../incubator/nuttx/10.1.0/..., .../nuttx/13.0.1/...).
  • Archive rows (9.0.0, 9.1.0, 10.0.0) have checksum-root == artifact-root, so their links are byte-identical before/after — no special handling needed. Legacy non-Apache table untouched (no hash/signature columns).

Backwards compatibility

Link targets change from mirror-picker pages to canonical files; the old closer.lua URLs remain valid for anyone who bookmarked them. No permalink, collection, or deployment changes.

SHA-512 and Signature columns used release.artifact-root, so they
pointed at the mirror selector (dyn/closer.lua) and returned an HTML
mirror-selection page instead of the file. Every release file defines
checksum-root for exactly this purpose, but no template read it.

Build hash/signature hrefs from release.checksum-root and keep the
Archive column on release.artifact-root. Archive rows where both roots
are identical (9.0.0, 9.1.0, 10.0.0) are unaffected.

Fixes apache#185

Signed-off-by: arnavsharma990 <2006arnavsharma@gmail.com>
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.

Download page builds SHA-512/signature links from artifact-root instead of checksum-root

2 participants