Uploaded image for project: 'Swift Driver'
  1. Swift Driver
  2. SWIFT-140

When UUID binary subtype is provided, validate that data is 16 bytes

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.0.3
    • Component/s: None
    • Labels:
      None

      Description

      Pointed out by Jeremy Mikola, we should validate the provided data to make sure it matches up with what a UUID should be like: 

      Some third-party tooling depends on that even though the server does not care. IMO an exception is helpful to warn users about misusing these sub-types. For instance, some were storing the string representation of a UUID (hexadecimals and dashes) instead of an actual binary value with the UUID sub-type, which is technically incorrect.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: