[
https://jira.jboss.org/jira/browse/JBMESSAGING-1494?page=com.atlassian.ji...
]
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