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

Abierto Apto para principiantes
#5,509 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
65/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
scala
Área
build-system

Línea de trabajo

Lee ServerConfiguration.scala alrededor de las líneas 80–81 y SecurityFilter.scala alrededor de las líneas 158 y 164; después, consulta LinkisModuleErrorCodeSummary para ver las definiciones de los códigos de error. Confirma la constante y la importación que faltan según el informe, aplica las dos correcciones indicadas y ejecuta la compilación de linkis-commons/linkis-module; la tarea estará terminada cuando el módulo compile sin esos cuatro errores.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
3.4k
Forks
1.2k
Merge medio
23 min
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/linkis

Todos los issues de apache/linkis

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.