camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject git commit: CAMEL-7587 Fixed the issue that MessageHistory stores passwords in plain text
Date Thu, 10 Jul 2014 05:54:46 GMT
Repository: camel
Updated Branches:
  refs/heads/master 6f05ee766 -> 6b0623ebd


CAMEL-7587 Fixed the issue that MessageHistory stores passwords in plain text


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/6b0623eb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/6b0623eb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/6b0623eb

Branch: refs/heads/master
Commit: 6b0623ebd7fbd0b3be48139fec8d1db3c783c97c
Parents: 6f05ee7
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Thu Jul 10 13:54:23 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Thu Jul 10 13:54:23 2014 +0800

----------------------------------------------------------------------
 camel-core/src/main/java/org/apache/camel/util/MessageHelper.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/6b0623eb/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java b/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
index 088b316..e2f59ec 100644
--- a/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
+++ b/camel-core/src/main/java/org/apache/camel/util/MessageHelper.java
@@ -462,7 +462,8 @@ public final class MessageHelper {
         for (MessageHistory history : list) {
             routeId = history.getRouteId() != null ? history.getRouteId() : "";
             id = history.getNode().getId();
-            label = history.getNode().getLabel();
+            // we need to avoid leak the sensibale information here
+            label =  URISupport.sanitizeUri(history.getNode().getLabel());
             elapsed = history.getElapsed();
 
             sb.append(String.format(MESSAGE_HISTORY_OUTPUT, routeId, id, label, elapsed));


Mime
View raw message