[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1494) UUIDGenerator does not use a different network address
Tim Fox (JIRA)
jira-events at lists.jboss.org
Wed Jan 28 11:02:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBMESSAGING-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450053#action_12450053 ]
Tim Fox commented on JBMESSAGING-1494:
--------------------------------------
We also need to consider how we guarantee uniqueness of the GUID when it's being generated in a restricted security environment where it's not allowable to query the local network interfaces. E.g. a JNLP sandbox or applet
> UUIDGenerator does not use a different network address
> ------------------------------------------------------
>
> Key: JBMESSAGING-1494
> URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1494
> Project: JBoss Messaging
> Issue Type: Feature Request
> Reporter: Jeff Mesnil
> Assignee: Tim Fox
> Fix For: 2.0.0 Beta
>
>
> UUIDGenerator always use InetAddress.getLocalHost() for its address which is likely to return the same result on different machines thus compromising the uniqueness of the UUID generated by different machines at the same time.
> Instead, we should use an address returned by NetworkInterface to retrieve an address different from the local address.
> In the case the UUIDGenerator is called from restricted clients (e.g. applets, no network permissions), we'd fall back on using the InetAddress.getLocalHost() but the uniqueness would not be guaranteed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list