This diff introduces validateUUIDv4 function that checks the validity of the generated UUIDs based on the regular expression.
Related linear task: ENG-1360
Differential D4467
[services] Tunnelbroker - Introduce `validateUUIDv4` function • max on Jul 7 2022, 4:33 AM. Authored by Tags None Referenced Files
Details
Diff Detail
Event Timeline
Comment Actions In a recent message checkpointing architecture update, the messageID (UUID) is generated on the client-side. That's why we should check the messageID format validity received from the client.
Message IDs format would go wrong in the database and can cause a possible message collision in the deviceID messages batch.
Comment Actions Regular expression was changed to match lowercase only and case insensitive was removed from regex. The function now returns true |