Fix `StatusLogger` crash when property access is denied

オープン
#4,429 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@abhiramaab がすでに取り組んでいます。

2026年10月25日 から。

  • #4431 @abhiramaab による — マージされずにクローズ

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
api, backend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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().

主要言語
Java
スター
3.6k
フォーク
1.8k
平均マージ
5日 6時間
マージ済み PR(30日)
24

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/logging-log4j2 のほかの issue

apache/logging-log4j2 の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。