Fix `StatusLogger` crash when property access is denied

Đang mở
#4,429 3 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

@abhiramaab đang làm issue này rồi.

Từ ngày 25/10/2026.

  • #4431 của @abhiramaab — đã đóng, không merge

Đá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
58/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ệ
java
Lĩnh vực
api, backend

Hướng nghiên cứu

Start by reading StatusLogger.PropertiesUtilsDouble#readAllAvailableProperties and inspect how System.getProperties() and System.getenv() are handled. Reproduce with a security manager denying the stated permissions, then check whether StatusLogger.getLogger() initializes successfully. Done means initialization does not fail when either access throws SecurityException; issue #4431 is a closed, unmerged pull request to review for context.

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

Mô tả

api bug priority: P2

StatusLogger.PropertiesUtilsDouble#readAllAvailableProperties calls System.getProperties() and System.getenv() without catching SecurityException.
Under a security manager denying either, StatusLogger fails to initialize and the API breaks with it.
Reproduce: install a security manager denying PropertyPermission("*", "read,write") or RuntimePermission("getenv.*"), then call StatusLogger.getLogger().

Ngôn ngữ chính
Java
Star
3.6k
Fork
1.8k
Merge trung bình
5 ngày 6 giờ
Pull request đã merge (30 ngày)
24

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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/logging-log4j2

Tất cả issue của apache/logging-log4j2

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.