[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2998) ZoneAlarm DNS warning when AbstractUUIDGenerator is initialized on Windows Vista
Steve Ebersole (JIRA)
noreply at atlassian.com
Fri Dec 7 09:05:56 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29091 ]
Steve Ebersole commented on HHH-2998:
-------------------------------------
The OSF UUID standard does in fact allow identifiers to be built on things other than inet/mac addresses; and in fact, randomness based identifiers are explicitly accounted for. However, randomness based UUID generators have a higher probability of collision, especially to the degree of the quality of the randomness generator. As such, I'll stick with inet/mac-address based for the shipped UUID generator. Now, these generators are extensible, so if you feel like using a different algorithm, feel free to implement your own and plug it in.
> ZoneAlarm DNS warning when AbstractUUIDGenerator is initialized on Windows Vista
> --------------------------------------------------------------------------------
>
> Key: HHH-2998
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2998
> Project: Hibernate3
> Issue Type: Improvement
> Components: core
> Affects Versions: 3.2.5
> Environment: Windows Vista with ZoneAlarm Firewall installed, Hibernate 3.2.5 and Java 1.6
> Reporter: Moritz Gmelin
> Priority: Minor
>
> When Hibernate initializes the AbstractUUIDGenerator, a call to InetAddress.getLocalHost() is made to get the host's IP address. If the host running the application is a windows vista host with a Zone Alarm firewall installed, the user gets a popup window that the application is trying to a DNS lookup (the DNS lookup is not even executed).
> This is not a hibernate bug. It is a vista & zone alarm bug. But it would be nice if the call in AbstractUUIDGenerator could be eliminated (the address is just used to generate some unique, random number). From looking at the code, I would guess that repacing the call by calling Math.random() would be just fine.
> Thanks
> Moritz
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list