AmarGhugare opened a new pull request, #4478:
URL: https://github.com/apache/logging-log4j2/pull/4478

   When a configuration containing a single filter is merged with another 
filter, `DefaultMergeStrategy` copies the incoming filter's attributes but 
drops its child elements. A `DynamicThresholdFilter` loses its `KeyValuePair` 
settings and uses the default threshold instead.
   
   Copy the incoming child nodes when creating the composite filter, matching 
the existing composite-filter branch. This addresses the child-settings loss 
described in #3173.
   
   The regression covers six combinations of existing filters and incoming 
filter groups, checking both the retained settings and filtering decisions. Two 
cases fail before the fix; all six pass afterward.
   
   ## Validation
   
   `./mvnw -B -ntp -pl :log4j-core-test -am verify` passed with JDK 17 across 
all six selected reactor modules, including the Core and API test suites, 
integration checks, SpotBugs, RAT, Spotless, and API compatibility checks.
   
   ## Checklist
   
   - [x] Based on `2.x`.
   - [x] Verification succeeds for Core and its reactor dependencies using the 
command above.
   - [x] Changelog entry included under `src/changelog/.2.x.x`.
   - [x] Regression tests 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]

Reply via email to