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

IPv6 addresses not supported in UUIDGenerator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1, 2.2.0
    • jdbc
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: