[JAVA-3749] JsonReader#visitUUIDConstructor has a condition that always true Created: 29/May/20 Updated: 28/Oct/23 Resolved: 02/Jun/20 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | JSON |
| Affects Version/s: | 4.0.3 |
| Fix Version/s: | 4.1.0 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Justin Chu | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux, Java |
||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Minor Change | ||||||||||||||||
| Description |
|
The condition
would always be true, such that it would always create a BsonBinary with the subtype:
when parsing a UUID. |
| Comments |
| Comment by Jeffrey Yemin [ 03/Jun/20 ] | |
|
Since the fix required a minor backwards breaking behavioral change, we don't plan to backport it to a patch release. | |
| Comment by Justin Chu [ 03/Jun/20 ] | |
|
Thanks for the update. May I know if this fix would also backport to the prior versions, such as 3.12? Thank you. | |
| Comment by Githook User [ 02/Jun/20 ] | |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Fix JSON parsing of shell-mode UUID constructor It's quite broken in a number of ways, actually:
This fix does two things:
| |
| Comment by Jeffrey Yemin [ 29/May/20 ] | |
|
I think the intention was that the conditional be:
I agree this is a bug. |