Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] GUID generation not very random #6158

Open
thorst opened this issue Apr 10, 2024 · 4 comments
Open

[BUG] GUID generation not very random #6158

thorst opened this issue Apr 10, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@thorst
Copy link

thorst commented Apr 10, 2024

Describe the bug
There is a propensity for mirth to choose the same GUIDs when creating different code templates on different servers. I imagine the seed isn't very random or something when trying to generate the GUID. This isn't TOO much of an issue when exporting and importing code templates because when you can select to ignore the warnings, and then it'll generate new GUIDs for you. However, it becomes problematic when I'm trying to sync templates and libraries across servers. The GUID is the unique ID, but with it being so easy to overlap, it makes this auditing and syncing of servers impossible. With the chances of GUID collision insanely low (one in 2¹²²) this should not be happening if it's truly random.

To Reproduce
On two separate servers, create 50 code templates on both servers. Now export from one server and try to import to the other server. There will be some GUIDs that overlap.

Expected behavior
I would expect there to be 0 overlapping GUIDs in such a small sample size.

Actual behavior
There are GUIDs that exist in this set of 50 on both servers, but would be associated with separate templates.

Environment (please complete the following information):

  • OS: Red Hat Enterprise Linux release 8.9 (Ootpa)
  • Java Distribution/Version
    openjdk version "22-ea" 2024-03-19
    OpenJDK Runtime Environment (Red_Hat-22.0.0.0.36-1) (build 22-ea+36)
    OpenJDK 64-Bit Server VM (Red_Hat-22.0.0.0.36-1) (build 22-ea+36, mixed mode, sharing)
  • Connect Version : 4.2.0

Workaround(s)
None

Additional context
None

@thorst thorst added the bug Something isn't working label Apr 10, 2024
@ab-mg-23
Copy link

Mirth is just making calls to java.util.UUID when generating the UUIDs, so this is less a Mirth issue and somewhere between the Java Runtime and the RHEL Kernel. Can you reproduce using a non-Redhat JDK like Azul Zulu or Amazon Corretto on your servers or even on a non-RHEL OS?

@pacmano1
Copy link
Collaborator

pacmano1 commented Apr 10, 2024

Is that how code tempalte export/imports work? It persists the UID on export/import. Or are you saying 50 new code templates created independently on each server might overlap their UIDs?

@thorst
Copy link
Author

thorst commented Apr 16, 2024

Is that how code tempalte export/imports work? It persists the UID on export/import. Or are you saying 50 new code templates created independently on each server might overlap their UIDs?

Create new independent on each server. Then when you import it will TRY to maintain the guid, and if you choose to ignore the arning itll assign a new guid on your behalf.

@thorst
Copy link
Author

thorst commented Apr 16, 2024

Mirth is just making calls to java.util.UUID when generating the UUIDs, so this is less a Mirth issue and somewhere between the Java Runtime and the RHEL Kernel. Can you reproduce using a non-Redhat JDK like Azul Zulu or Amazon Corretto on your servers or even on a non-RHEL OS?

Interesting, Ill ask our server team if we can try a different java distribution..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants