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

IPv6 addresses not supported in UUIDGenerator

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment