Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2055

IPv6 addresses not supported in UUIDGenerator

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: jdbc
    • Labels:
      None

      Description

      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.

        Attachments

        1. OPENJPA-2055-2.1.x.patch
          0.9 kB
          Heath Thomann

          Activity

            People

            • Assignee:
              jpaheath Heath Thomann
              Reporter:
              jpaheath Heath Thomann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: