Download page builds SHA-512/signature links from artifact-root instead of checksum-root
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
- Ambito
- documentation, web-dev
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/nuttx-website
-
[www/doc] split ci job for website update and documentation update.Forse di nuovo libera @cederom l’ha presa 78 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation enhancement
apache/nuttx-website#180 · 1 assegnatario ·
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 35/100
apache/nuttx-website#130 · 5 commenti · 2 reazioni ·
-
[WWW/DOC] NuttX RTOS Website and DocumentationForse di nuovo libera @cederom l’ha presa 607 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation
apache/nuttx-website#129 · 1 assegnatario ·
-
[WWW/DOC] CI: build only parts that changed.Forse di nuovo libera @cederom l’ha presa 736 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation enhancement
apache/nuttx-website#124 · 1 assegnatario ·
Tutte le issue di apache/nuttx-website
Issue simili
-
documentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
bug docs
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno