You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rg...@apache.org on 2019/06/18 04:48:44 UTC
[logging-log4j2] branch release-2.x updated: LOG4J2-1143 - Lookups
were not found if the plugin key was not lowercase
This is an automated email from the ASF dual-hosted git repository.
rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release-2.x by this push:
new a910cef LOG4J2-1143 - Lookups were not found if the plugin key was not lowercase
a910cef is described below
commit a910cef76f772033b7f8784c384ee03449be184f
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Mon Jun 17 21:47:55 2019 -0700
LOG4J2-1143 - Lookups were not found if the plugin key was not lowercase
---
.../main/java/org/apache/logging/log4j/core/lookup/Interpolator.java | 2 +-
src/changes/changes.xml | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
index 946dadd..72e368f 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/lookup/Interpolator.java
@@ -73,7 +73,7 @@ public class Interpolator extends AbstractConfigurationAwareLookup {
for (final Map.Entry<String, PluginType<?>> entry : plugins.entrySet()) {
try {
final Class<? extends StrLookup> clazz = entry.getValue().getPluginClass().asSubclass(StrLookup.class);
- strLookupMap.put(entry.getKey(), ReflectionUtil.instantiate(clazz));
+ strLookupMap.put(entry.getKey().toLowerCase(), ReflectionUtil.instantiate(clazz));
} catch (final Throwable t) {
handleError(entry.getKey(), t);
}
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1387f87..6f66a36 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -30,6 +30,9 @@
- "remove" - Removed
-->
<release version="2.12.0" date="2019-MM-DD" description="GA Release 2.12.0">
+ <action issue="LOG4J2-1143" dev="rgoers" type="fix" due-to="Pascal Heinrich">
+ Lookups were not found if the plugin key was not lowercase.
+ </action>
<action issue="LOG4J2-2406" dev="rgoers" type="add">
Add reconfiguration methods to Configurator.
</action>