synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Brosius (JIRA)" <j...@apache.org>
Subject [jira] Created: (SYNAPSE-506) [PATCH] messageId isn't randomized
Date Sun, 15 Feb 2009 01:39:59 GMT
[PATCH] messageId isn't randomized
----------------------------------

                 Key: SYNAPSE-506
                 URL: https://issues.apache.org/jira/browse/SYNAPSE-506
             Project: Synapse
          Issue Type: Bug
          Components: Transports
    Affects Versions: 1.1.1
            Reporter: Dave Brosius
            Priority: Minor
             Fix For: 1.1.1
         Attachments: create_unique_message_ids.diff

Code attempts to add a random value to the message id, but it just appends 0 always instead,
due to bad parenthesizing

             // compute the unique message ID
             String messageId = filePath + "_" + fileName +
-                "_" + System.currentTimeMillis() + "_" + (int) Math.random() * 1000;
+                "_" + System.currentTimeMillis() + "_" + (int) (Math.random() * 1000);


patch fixes this

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message