[BUG] Master build broken since July: undefined error-code constant and missing import fail linkis-module compilation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 65/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- scala
- 领域
- build-system
调研方向
阅读第 80–81 行附近的 ServerConfiguration.scala 和第 158、164 行附近的 SecurityFilter.scala,然后检查 LinkisModuleErrorCodeSummary 中的错误代码定义。确认报告中缺失的常量和导入,进行报告中指出的两项修复,并编译 linkis-commons/linkis-module;当该模块编译时不再出现这四个错误,即表示完成。
由索引模型根据 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 分钟
- 30 天内合并 PR
- 1
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 天前认领,目前没有进行中的 PR。 未关闭bug
难度 1/5 1 小时以内 新手友好度 86/100
维护者通常 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
维护者通常 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 天内回复