You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2009/02/15 13:21:02 UTC

[jira] Assigned: (SYNAPSE-506) [PATCH] messageId isn't randomized

     [ https://issues.apache.org/jira/browse/SYNAPSE-506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen reassigned SYNAPSE-506:
---------------------------------------

    Assignee: Andreas Veithen

> [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
>            Assignee: Andreas Veithen
>            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