rebrand-literal-gutter: uhttpd section-vocabulary check trips on a COMMENT (uhttpd.luci in 92-tollgate-admin-setup:178)
I maintainer di solito rispondono entro 1 giorno
@Amperstrand ci sta già lavorando.
Dal 11/10/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
Direzione di ricerca
Inizia dall’estrattore e dall’allowlist in tests/packaging/rebrand-literal-gutter_test.sh:124-130, poi esamina il commento in packaging/files/etc/uci-defaults/92-tollgate-admin-setup:178. Mantieni il controllo del vocabolario delle sezioni evitando al contempo che il testo dei commenti produca falsi positivi; esegui bash tests/packaging/rebrand-literal-gutter_test.sh e conferma che l’errore di sezione sconosciuta non si verifica più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The same suite as the rebrand-gutter issue has a second, independent RED cause: the uhttpd section-vocabulary check extracts uhttpd.<name> tokens with a bare grep that does not strip comments, and a COMMENT in packaging/files/etc/uci-defaults/92-tollgate-admin-setup:178 mentions uhttpd.luci — tripping "unknown uhttpd section".
Verified on
- Commit:
68ad5144ab09cb4723d8f3f655cbba1ac7ea9de5(main, 2026-10-07); deterministic on any host
Evidence (verbatim)
The offending line — a comment, not code:
packaging/files/etc/uci-defaults/92-tollgate-admin-setup:178:# section (a stale `uhttpd.luci`-style section must not own the admin port).
The extractor and its allowlist (tests/packaging/rebrand-literal-gutter_test.sh:124-130):
KNOWN='main|portal|trusted|admin|crt|key|cert'
foreign="$(grep -rhoE 'uhttpd\.[a-zA-Z][a-zA-Z0-9_]*' packaging/files/etc/uci-defaults/ 2>/dev/null |
sed 's/^uhttpd\.//' | sort -u | grep -v -E "^($KNOWN)$" || true)"
Actual extraction over the real tree yields only known sections (admin, crt, key, main, portal, trusted) — the luci hit comes solely from the comment.
Reproduce
git checkout 68ad5144ab09cb4723d8f3f655cbba1ac7ea9de5
bash tests/packaging/rebrand-literal-gutter_test.sh 2>&1 | grep -A2 'known uhttpd'
# FAIL unknown uhttpd section name(s) in the uci-defaults: luci
Troubleshooting guide + fix hints
Two equivalent fixes; the first is more robust:
- Strip comments before extraction — the uci-defaults scripts are POSIX shell; extract only from active code:
(also handles trailing after-code comments if you stripgrep -rhvE '^\s*#' packaging/files/etc/uci-defaults/ | grep -oE 'uhttpd\.[a-zA-Z][a-zA-Z0-9_]*' | ...#.*$first — decide how thorough to be; leading-#-line stripping alone fixes this case). - Or reword the comment in
92-tollgate-admin-setup:178to avoid the token (a stale section named after LuCI).
Keep the check itself — it exists to stop a second admin writer from sneaking in a foreign uhttpd section (#684-era hygiene); only its tokenizer is wrong.
References
- Same suite as the
Net4satsgutter issue (fix both to restore the packaging gate to green).
- Lingua principale
- Go
- Stelle
- 12
- Fork
- 14
- Merge medio
- 3g 20h
- PR unite (30g)
- 261
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 OpenTollGate/tollgate-module-basic-go
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
OpenTollGate/tollgate-module-basic-go#1159 ·
I maintainer di solito rispondono entro 1 giorno
-
Degraded-mode hygiene follow-ups: dead walletNotInitializedError() + main.go's startup log still over-promises mint recoveryForse già presa @Amperstrand l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1135 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
setup_uhttpd_portal hardcodes the GUEST portal docroot to the TollGate path — the brand token cannot select a re-brand guest portalForse già presa @Amperstrand l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1122 ·
I maintainer di solito rispondono entro 1 giorno
-
changelog: dependency-security sweep missing from [Unreleased] [Amperstrand fork #105 review debt]Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
OpenTollGate/tollgate-module-basic-go#1055 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenTollGate/tollgate-module-basic-go#1027 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenTollGate/tollgate-module-basic-go
Issue simili
-
fix(scan): validate and normalize output format in validate-contractForse già presa @WKr1shna l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Won't Fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
microsoft/TypeScript#65107 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
argoproj/argo-workflows#17397 ·
I maintainer di solito rispondono entro 1 giorno