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

オープン 初心者向け
#5,509 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
scala
領域
build-system

調査の方向性

80~81行目付近の ServerConfiguration.scala と、158行目および164行目付近の SecurityFilter.scala を読み、次に LinkisModuleErrorCodeSummary でエラーコードの定義を確認してください。報告されている定数とインポートの欠落を確認し、指摘された2つの修正を行ってから、linkis-commons/linkis-module をコンパイルしてください。このモジュールが該当する4つのエラーなしでコンパイルできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Java
スター
3.4k
フォーク
1.2k
平均マージ
23分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/linkis のほかの issue

apache/linkis の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。