camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1388345 - in /camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400: Jt400DataQueueEndpoint.java Jt400PgmEndpoint.java
Date Fri, 21 Sep 2012 06:52:10 GMT
Author: davsclaus
Date: Fri Sep 21 06:52:10 2012
New Revision: 1388345

URL: http://svn.apache.org/viewvc?rev=1388345&view=rev
Log:
CAMEL-5624: Santize the uri to mask password. Thanks to Joao Loureiro for the patch.

Modified:
    camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400DataQueueEndpoint.java
    camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmEndpoint.java

Modified: camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400DataQueueEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400DataQueueEndpoint.java?rev=1388345&r1=1388344&r2=1388345&view=diff
==============================================================================
--- camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400DataQueueEndpoint.java
(original)
+++ camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400DataQueueEndpoint.java
Fri Sep 21 06:52:10 2012
@@ -29,6 +29,7 @@ import org.apache.camel.PollingConsumer;
 import org.apache.camel.Producer;
 import org.apache.camel.impl.DefaultPollingEndpoint;
 import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.URISupport;
 
 /**
  * AS/400 Data queue endpoint
@@ -95,7 +96,7 @@ public class Jt400DataQueueEndpoint exte
         try {
             baseEndpoint = new Jt400Endpoint(endpointUri, connectionPool);
         } catch (URISyntaxException e) {
-            throw new CamelException("Unable to parse URI for " + endpointUri, e);
+            throw new CamelException("Unable to parse URI for " + URISupport.sanitizeUri(endpointUri),
e);
         }
     }
 

Modified: camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmEndpoint.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmEndpoint.java?rev=1388345&r1=1388344&r2=1388345&view=diff
==============================================================================
--- camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmEndpoint.java
(original)
+++ camel/trunk/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmEndpoint.java
Fri Sep 21 06:52:10 2012
@@ -34,6 +34,7 @@ import org.apache.camel.component.jt400.
 import org.apache.camel.impl.DefaultEndpoint;
 import org.apache.camel.util.EndpointHelper;
 import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.URISupport;
 
 public class Jt400PgmEndpoint extends DefaultEndpoint {
     /**
@@ -64,7 +65,7 @@ public class Jt400PgmEndpoint extends De
         try {
             baseEndpoint = new Jt400Endpoint(endpointUri, connectionPool);
         } catch (URISyntaxException e) {
-            throw new CamelException("Unable to parse URI for " + endpointUri, e);
+            throw new CamelException("Unable to parse URI for " + URISupport.sanitizeUri(endpointUri),
e);
         }
     }
 



Mime
View raw message