[BUG] Master build broken since July: undefined error-code constant and missing import fail linkis-module compilation

Aperta Adatta ai principianti
#5,509 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
scala
Ambito
build-system

Direzione di ricerca

Leggi ServerConfiguration.scala intorno alle righe 80–81 e SecurityFilter.scala intorno alle righe 158 e 164, quindi controlla in LinkisModuleErrorCodeSummary le definizioni dei codici di errore. Conferma la costante e l’importazione mancanti segnalate, applica le due correzioni indicate ed esegui la compilazione di linkis-commons/linkis-module; il lavoro è concluso quando il modulo viene compilato senza questi quattro errori.

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

Descrizione

Summary

master fails to compile in linkis-commons/linkis-module. Every push CI run on master since 2026-07-16 has been red, and the nightly "Publish Snapshot" workflow can never reach the deploy stage. There are four Scala compilation errors with two independent root causes, both left behind by the July/August security hardening series.

Root causes

1. Undefined error-code constant — commit bb26ad3 (2026-07-16, "[SECURITY][A] remove default wds.linkis.crypt.key, fail-closed on...") references CRYPT_KEY_INSECURE in ServerConfiguration.scala:80-81:

throw new BDPInitServerException(
  CRYPT_KEY_INSECURE.getErrorCode,
  s"${CRYPT_KEY_INSECURE.getErrorDesc}: ..."
)

but no CRYPT_KEY_INSECURE entry exists in LinkisModuleErrorCodeSummary — a repo-wide code search finds only the references, no definition. The companion commit that should have added the enum entry never landed on master.

2. Missing import — commit 41c025d (2026-08-12, "[SECURITY] Upgrade session ticket cipher from DES to AES-256-GCM") uses CommonVars at SecurityFilter.scala:158,164 without adding an import (the file has no other CommonVars usage, so it never needed one before).

Evidence

Identical compile errors in two independent CI runs (one of them a plain build-backend job not involving any workflow changes):

ServerConfiguration.scala:80: not found: value CRYPT_KEY_INSECURE
ServerConfiguration.scala:81: not found: value CRYPT_KEY_INSECURE
SecurityFilter.scala:158: not found: value CommonVars
SecurityFilter.scala:164: not found: value CommonVars

Impact

  • master cannot be built at all, so nightly snapshot publishing (see INFRA-28709) and any full build stay broken
  • contributors get a wall of red CI that is unrelated to their changes

A fix PR (add the missing enum entry + add the import) will follow shortly.

Lingua principale
Java
Stelle
3.4k
Fork
1.2k
Merge medio
23m
PR unite (30g)
1

Preparare l'ambiente

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/linkis

Tutte le issue di apache/linkis

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.