-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Bson
-
None
-
Environment:OS:
node.js / npm versions:
Additional info:
-
2
HELP-48051 points out that mongosh's UUID constructor does not validate at least some input:
> new UUID('222222-2222-2222-9222-222222222222') Binary(Buffer.from("222222222222229222222222222222", "hex"), 4)
vs
> new bson.UUID('222222-2222-2222-9222-222222222222') BSONError: UUID string representation must be 32 hex digits or canonical hyphenated representation