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 2020/02/15 20:00:57 UTC

[logging-log4j2] 02/02: LOG4J2-2703 - MapMessage.getFormattedMesssage() would incorrectly format objects.

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

commit 61d5c06098f16f7a39e483f0cd4bc750067bed7a
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Sat Feb 15 13:00:41 2020 -0700

    LOG4J2-2703 - MapMessage.getFormattedMesssage() would incorrectly format objects.
---
 .../logging/log4j/message/MapMessageJsonFormatter.java   | 16 ++++++++++++++++
 src/changes/changes.xml                                  |  3 +++
 2 files changed, 19 insertions(+)

diff --git a/log4j-api/src/main/java/org/apache/logging/log4j/message/MapMessageJsonFormatter.java b/log4j-api/src/main/java/org/apache/logging/log4j/message/MapMessageJsonFormatter.java
index 7c40233..3887f97 100644
--- a/log4j-api/src/main/java/org/apache/logging/log4j/message/MapMessageJsonFormatter.java
+++ b/log4j-api/src/main/java/org/apache/logging/log4j/message/MapMessageJsonFormatter.java
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache license, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the license for the specific language governing permissions and
+ * limitations under the license.
+ */
 package org.apache.logging.log4j.message;
 
 import org.apache.logging.log4j.util.IndexedStringMap;
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5abb369..fefb702 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -30,6 +30,9 @@
          - "remove" - Removed
     -->
     <release version="2.13.1" date="2019-MM-DD" description="GA Release 2.13.1">
+      <action issue="LOG4J2-2703" dev="goers" type="fix" due-to="Volkan Yazici">
+        MapMessage.getFormattedMesssage() would incorrectly format objects.
+      </action>
       <action issue="LOG4J2-2760" dev="rgoers" type="fix" due-to="Christoph Kaser">
         Always write header on a new OutputStream.
       </action>