[BUG] Master build broken since July: undefined error-code constant and missing import fail linkis-module compilation
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- scala
- Domain
- build-system
Research direction
Read ServerConfiguration.scala around lines 80–81 and SecurityFilter.scala around lines 158 and 164, then check LinkisModuleErrorCodeSummary for the error-code definitions. Confirm the reported missing constant and import, make the two reported fixes, and run compilation for linkis-commons/linkis-module; done means the module compiles without those four errors.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.2k
- Avg merge
- 23m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/linkis
-
bug dependencies
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Bug] linkis-application-manager's RMUtils class has a logic bugMay be free again @zhang-arvin claimed this 88 days ago, and no pull request is open. Openbug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
apache/linkis#4974 · 4 comments ·
Maintainers usually reply within 1 day
-
[Bug] Broken MyBatis mapper statements in jobhistory, manager-persistence and et-monitorPossibly taken @andrehqh claimed this 16 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
[Bug][CI] GitHub Actions startup failure: third-party actions not in ASF allow-listPossibly taken @aiceflower claimed this 50 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
Scala Compilation is broken on master branch and recent PRsPossibly taken @pjfanning claimed this 66 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 38/100
apache/linkis#5482 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bloxbean/yaci-store#1445 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Spare PermissionOpen
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Etar-Group/Etar-Calendar#2234 ·
Maintainers usually reply within 1 day
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesPossibly taken @CryoThrust claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
langchain4j/langchain4j#7320 ·
Maintainers usually reply within 1 day