[jboss-jira] [JBoss JIRA] Created: (JBMESSAGING-1494) UUIDGenerator does not use a different network address

Jeff Mesnil (JIRA) jira-events at lists.jboss.org
Wed Jan 28 10:22:44 EST 2009


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