[JAVA-4963] isIpLiteral check for server address resolution is incorrect Created: 11/May/23 Updated: 28/Oct/23 Resolved: 31/May/23 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Connection Management |
| Affects Version/s: | None |
| Fix Version/s: | 4.10.0 |
| Type: | Bug | Priority: | Unknown |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Documentation Changes: | Not Needed |
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
|
As part of
This check is incorrect, as it will treat any host name starting with the characters 'a' through 'f' as IP literals. Looking at the JDK source more closely, it's not such a simple check to see if a string is an IP literal, as it involves parsing the whole string, and there is also a system property, "jdk.net.allowAmbiguousIPAddressLiterals", which figures into the determination. But the check in the driver is wrong, so we either need to:
It was decided to implement the second option |
| Comments |
| Comment by Githook User [ 31/May/23 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Remove IP literal check for InetAddressResolver (#1120)
|