synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (SYNAPSE-506) [PATCH] messageId isn't randomized
Date Sun, 15 Feb 2009 12:21:02 GMT

     [ 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


Mime
View raw message