openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Heath Thomann (Updated) (JIRA)" <>
Subject [jira] [Updated] (OPENJPA-2055) IPv6 addresses not supported in UUIDGenerator
Date Fri, 30 Sep 2011 18:31:45 GMT


Heath Thomann updated OPENJPA-2055:

    Attachment: OPENJPA-2055-2.1.x.patch

Albert Lee and I have worked on a solution to account for the possibility of an IPv6 address.
 I'm attaching a patch with our proposed solution.
> IPv6 addresses not supported in UUIDGenerator
> ---------------------------------------------
>                 Key: OPENJPA-2055
>                 URL:
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.1.0
>            Reporter: Heath Thomann
>            Assignee: Heath Thomann
>            Priority: Minor
>         Attachments: OPENJPA-2055-2.1.x.patch
> UUIDGenerator class uses an IPv4 address as part of its seed when generating a UUID.
 That is, the UUIDGenerator makes a call to InteAddress 'getAddress' method to get the address
and assumes it returns a byte array of size 4 (the size of an IPv4 address).  However, in
an environment which uses IPv6, 'getAddress' can return a byte array of length 16.  UUIDGenerator
needs to be updated to account for an IPv6 address.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message