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

Đang mở Phù hợp với người mới
#5,509 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
scala
Lĩnh vực
build-system

Hướng nghiên cứu

Đọc ServerConfiguration.scala quanh dòng 80–81 và SecurityFilter.scala quanh dòng 158 và 164, sau đó kiểm tra các định nghĩa mã lỗi trong LinkisModuleErrorCodeSummary. Xác nhận hằng số và import bị thiếu như đã báo cáo, thực hiện hai sửa đổi được nêu và chạy biên dịch cho linkis-commons/linkis-module; hoàn tất khi mô-đun biên dịch không còn bốn lỗi này.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
3.4k
Fork
1.2k
Merge trung bình
23 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/linkis

Tất cả issue của apache/linkis

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.