DragonFSKY opened a new pull request, #4199: URL: https://github.com/apache/logging-log4j2/pull/4199
Fixes #3896. This change makes `ConfigurationFactory` active-state handling consistent: * Aggregate lookup skips inactive factories before querying their capabilities or creating configurations. * Direct use of inactive JSON, YAML, and Log4j 1.x compatibility factories fails with `IllegalStateException`. * Activation remains dynamic and honors overridden `isActive()` implementations. Tests cover aggregate lookup paths, dynamic activation, overridden active state, and missing JSON/YAML dependencies. Existing Log4j 1.x configuration tests now explicitly enable compatibility mode where required, and the affected OSGi package versions reflect the new protected overrides. ## Checklist * Base your changes on `2.x` branch if you are targeting Log4j 2; use `main` otherwise * `./mvnw verify` succeeds ([the build instructions](https://logging.apache.org/log4j/2.x/development.html#building)) * Non-trivial changes contain an entry file in the `src/changelog/.2.x.x` directory * Tests are provided -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
