-
Notifications
You must be signed in to change notification settings - Fork 261
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
Comments
Mirth is just making calls to |
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. |
Interesting, Ill ask our server team if we can try a different java distribution.. |
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):
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)
Workaround(s)
None
Additional context
None
The text was updated successfully, but these errors were encountered: