[SERVER-12835] UUID() shell method should use binary subtype 4 Created: 21/Feb/14 Updated: 29/Jan/18 Resolved: 10/Nov/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | 2.6.0-rc0 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Jeremy Mikola | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | uuid | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
Currently, the UUID() method creates binary data with subtype 3, which is deprecated.
Subtype 4 should be used, and we should ensure that the generated UUID is compliant with RFC 4122. See |
| Comments |
| Comment by Geert Bosch [ 13/Nov/17 ] | ||||||
|
The Mongo shell UUID() method now uses binary subtype 4 by default. It will generate RFC4122 version 4 (random) UUIDs and output them as:
| ||||||
| Comment by Jeremy Mikola [ 13/Nov/17 ] | ||||||
|
geert@mongodb.com: What issue is this duplicating? |