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:01:07 UTC

[logging-log4j2] branch master updated: 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 master
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/master by this push:
     new 5768506  LOG4J2-2703 - MapMessage.getFormattedMesssage() would incorrectly format objects.
5768506 is described below

commit 5768506b55d3049e6c505a8bfa8892333beec39a
Author: Ralph Goers <rg...@apache.org>
AuthorDate: Sat Feb 15 12:35:49 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 dddc51a..a962eed 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -166,6 +166,9 @@
       </action>
     </release>
     <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>