Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta Adatta ai principianti
#185 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
75/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
css, html, jekyll

Direzione di ricerca

Il problema si trova nel file download.md alle righe 51-52. Per prima cosa, individua la directory _releases/ del repository per comprendere la struttura dei dati di rilascio (cercando checksum-root e artifact-root). Modifica il template per utilizzare release.checksum-root per gli href dei link SHA-512 e Firma. Testa compilando il sito Jekyll localmente e verificando che i link generati puntino a downloads.apache.org e restituiscano file di testo semplice/firma, non HTML.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The SHA-512 and Signature columns on the download page link to the mirror selector rather than the canonical distribution host, so they return an HTML mirror-selection page instead of the file.

Reproduction

on https://nuttx.apache.org/download/, click any current release's SHA-512 link (e.g. 13.0.1). curl shows the difference:

Generated: https://www.apache.org/dyn/closer.lua/nuttx/12.12.0/apache-nuttx-12.12.0.tar.gz.sha512 → 200 text/html, ~21 KB mirror-picker page
Canonical: https://downloads.apache.org/nuttx/12.12.0/apache-nuttx-12.12.0.tar.gz.sha512 → 200 text/plain, 158 bytes (the hash)
Same for .asc: the generated URL returns the ~21 KB HTML page; the downloads.apache.org URL returns the 833-byte PGP signature.

Root cause:

download.md:51-52 builds the .sha512/.asc hrefs from release.artifact-root. Every release file defines checksum-root (and key-file) for exactly this purpose — present since the first Apache release file (be0ee1f, 9.0.0, May 2020) — but no template reads them; the same commit wired the columns to artifact-root instead. A repo-wide grep confirms checksum-root/key-file are write-only (only other hit is the dormant generator helpers/syncbbrelease.py).

Scope:

affects all mirror-served Apache releases (9.1.1, 10.0.1, 10.1.0–13.0.1). Archive rows (9.0.0, 9.1.0, 10.0.0) have checksum-root == artifact-root, so they are unaffected and need no special handling. The page text itself (download.md:68-69) already states hashes/signatures are hosted at Apache, and the closer.lua page advises fetching signatures from the main distribution site rather than a mirror.

Proposed fix (scoped to download.md:51-52 only): build the SHA-512 and Signature hrefs from release.checksum-root, leaving the Archive column on artifact-root. Suggested regression check: assert built SHA/ASC hrefs start with each release's checksum-root and return non-HTML 200s.

Lingua principale
CSS
Stelle
24
Fork
37
Merge medio
2h 30m
PR unite (30g)
2

Preparare l'ambiente

Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/nuttx-website

Tutte le issue di apache/nuttx-website

Issue simili

Altre issue su Documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.