You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/07/10 07:56:38 UTC

[1/2] git commit: CAMEL-7587 Fixed the issue that MessageHistory stores passwords in plain text

Repository: camel
Updated Branches:
  refs/heads/camel-2.12.x 803dad0ca -> 2c97542d4
  refs/heads/camel-2.13.x f73fdecaf -> 31cfd8aef


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/31cfd8ae
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/31cfd8ae
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/31cfd8ae

Branch: refs/heads/camel-2.13.x
Commit: 31cfd8aefc8472e6fc3bcabd611e1de9ddd71984
Parents: f73fdec
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Jul 10 13:54:23 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Jul 10 13:56:02 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/31cfd8ae/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));


[2/2] git commit: CAMEL-7587 Fixed the issue that MessageHistory stores passwords in plain text

Posted by ni...@apache.org.
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/2c97542d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2c97542d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2c97542d

Branch: refs/heads/camel-2.12.x
Commit: 2c97542d416ed1b9094995438adb1909f870a141
Parents: 803dad0
Author: Willem Jiang <wi...@gmail.com>
Authored: Thu Jul 10 13:54:23 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Thu Jul 10 13:56:11 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/2c97542d/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));