apache / apache/logging-log4j2

Fix `ConfigurationFactory::isActive` overrides

Open
#3,896 1 comment 2 reactions 0 assignees View on GitHub
bug configuration waiting-for-maintainer
Dominant language
Java
Stars
3.6k
Forks
1.7k
Avg merge
21h 30m
Merged PRs (30d)
27

Description

`ConfigurationFactory` implementations should override `isActive()` and throw `IllegalStateException` when they are used (e.g., via `getSupportedTypes()`) in inactive state. This change sufficiently be tested too.

See [this comment](https://github.com/apache/logging-log4j2/pull/3839#issuecomment-3211804379) on #3839 for details.

No `3.x` port is needed – `isActive()` does not exist there.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.