You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/02/16 10:41:37 UTC

[camel] branch master updated (e0194d5 -> 7dc37bc)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from e0194d5  CAMEL-16217: camel-core - FluentProducerTemplate - optimize to uri when its the same endpoint
     new 08ec2e3  Revert "CAMEL-16193 - Use SecureRandom instead of Random - Camel-JMS"
     new 7dc37bc  CAMEL-16218 - Added NOSONAR comment in camel-jms

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../java/org/apache/camel/component/jms/reply/QueueReplyManager.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


[camel] 02/02: CAMEL-16218 - Added NOSONAR comment in camel-jms

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7dc37bc18adcf57b2655fc6ae9958e54ca699067
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Feb 16 11:39:46 2021 +0100

    CAMEL-16218 - Added NOSONAR comment in camel-jms
---
 .../java/org/apache/camel/component/jms/reply/QueueReplyManager.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
index aa05326..0124a29 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
@@ -135,6 +135,7 @@ public class QueueReplyManager extends ReplyManagerSupport {
             String replyToSelectorName = endpoint.getReplyToDestinationSelectorName();
             if (replyToSelectorName != null) {
                 // create a random selector value we will use for the reply queue
+                // NOSONAR
                 replyToSelectorValue = "ID:" + new BigInteger(24 * 8, new Random()).toString(16);
                 String fixedMessageSelector = replyToSelectorName + "='" + replyToSelectorValue + "'";
                 answer = new SharedQueueMessageListenerContainer(endpoint, fixedMessageSelector);


[camel] 01/02: Revert "CAMEL-16193 - Use SecureRandom instead of Random - Camel-JMS"

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 08ec2e3f27ce9bf287ce05aa368d691d79836650
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Feb 16 11:38:24 2021 +0100

    Revert "CAMEL-16193 - Use SecureRandom instead of Random - Camel-JMS"
    
    This reverts commit b6a4c8dc93841b15228aaf2d965e7036e2d436ed.
---
 .../java/org/apache/camel/component/jms/reply/QueueReplyManager.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
index 3e50471..aa05326 100644
--- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
+++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/reply/QueueReplyManager.java
@@ -17,7 +17,7 @@
 package org.apache.camel.component.jms.reply;
 
 import java.math.BigInteger;
-import java.security.SecureRandom;
+import java.util.Random;
 
 import javax.jms.Destination;
 import javax.jms.JMSException;
@@ -135,7 +135,7 @@ public class QueueReplyManager extends ReplyManagerSupport {
             String replyToSelectorName = endpoint.getReplyToDestinationSelectorName();
             if (replyToSelectorName != null) {
                 // create a random selector value we will use for the reply queue
-                replyToSelectorValue = "ID:" + new BigInteger(24 * 8, new SecureRandom()).toString(16);
+                replyToSelectorValue = "ID:" + new BigInteger(24 * 8, new Random()).toString(16);
                 String fixedMessageSelector = replyToSelectorName + "='" + replyToSelectorValue + "'";
                 answer = new SharedQueueMessageListenerContainer(endpoint, fixedMessageSelector);
                 // must use cache level consumer for fixed message selector