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

Open Beginner friendly
#5,509 0 comments 0 reactions 0 assignees View on GitHub

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

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/linkis

All issues in apache/linkis

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.