Commit 01019c7
committed
Fix JSON parsing of shell-mode UUID constructor
It's quite broken in a number of ways, actually:
* It produced the wrong binary subtype for UUID/GUID (legacy instead of standard)
* It partially supported alternate constructors for UUIDs that were proposed
long ago for the shell but never implemented, but does not actually produced
the correct byte ordering for CSUUID/CSGUID or JUUID/JGUID
This fix does two things:
* It produces the correct subtype for the UUID constructor: standard, subtype 4
* It removes the broken support for all the other constructors that were never
actually implemented correctly.
JAVA-37491 parent 6267ee3 commit 01019c7
File tree
2 files changed
+20
-26
lines changed- bson/src
- main/org/bson/json
- test/unit/org/bson/json
2 files changed
+20
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 247 | + | |
255 | 248 | | |
256 | | - | |
| 249 | + | |
257 | 250 | | |
258 | 251 | | |
259 | 252 | | |
| |||
594 | 587 | | |
595 | 588 | | |
596 | 589 | | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
| 590 | + | |
| 591 | + | |
606 | 592 | | |
607 | 593 | | |
608 | 594 | | |
| |||
716 | 702 | | |
717 | 703 | | |
718 | 704 | | |
719 | | - | |
| 705 | + | |
720 | 706 | | |
721 | | - | |
| 707 | + | |
722 | 708 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
| 709 | + | |
729 | 710 | | |
730 | 711 | | |
731 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
948 | 961 | | |
949 | 962 | | |
950 | 963 | | |
| |||
0 commit comments