[BUG] Master build broken since July: undefined error-code constant and missing import fail linkis-module compilation
メンテナーはふだん 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
- Publish Snapshot run 2026-11-26: https://github.com/apache/linkis/actions/runs/45771756417
- build-backend (spark-3) on PR #5499 (same errors)
- master push CI failures on 07-16, 08-12, 08-19 and 11-25, e.g. https://github.com/apache/linkis/actions/runs/45582806806
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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/linkis のほかの issue
-
bug dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
[Bug] linkis-application-manager's RMUtils class has a logic bug再び着手できるかも @zhang-arvin が 88 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
apache/linkis#4974 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Broken MyBatis mapper statements in jobhistory, manager-persistence and et-monitor対応中かも @andrehqh が 16 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
[Bug][CI] GitHub Actions startup failure: third-party actions not in ASF allow-list対応中かも @aiceflower が 50 日前に担当しました。 オープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Scala Compilation is broken on master branch and recent PRs対応中かも @pjfanning が 66 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
apache/linkis#5482 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bloxbean/yaci-store#1445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
Spare Permissionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
Etar-Group/Etar-Calendar#2234 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] MCP resources-as-tools drops invocation context when listing templates対応中かも @CryoThrust が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
langchain4j/langchain4j#7320 ·
メンテナーはふだん 1 日以内に返信