HTHou opened a new pull request, #18291: URL: https://github.com/apache/iotdb/pull/18291
## Description Format CLI endpoints consistently for IPv4, hostnames, and IPv6 addresses. The CLI now uses `UrlUtils.formatTEndPointIpv4AndIpv6Url` when constructing its JDBC URL and when printing the successful login endpoint. The login message is also moved into the English and Chinese i18n message classes. The previous CLI code concatenated the host and port directly. The IoTDB JDBC parser tolerated an unbracketed IPv6 address, but the resulting URL was non-standard and the login output was ambiguous. | Area | Before | After | | --- | --- | --- | | IPv6 JDBC URL | `jdbc:iotdb://::1:6667/` | `jdbc:iotdb://[::1]:6667/` | | IPv6 login output | `Successfully login at ::1:6667` | `Successfully login at [::1]:6667` | | IPv4 and hostname endpoints | Direct `host:port` concatenation | Unchanged output through the shared formatter | | Login message localization | Inline English text | English and Chinese i18n messages | ## Validation - `mvn spotless:apply -pl iotdb-client/cli -am` - `mvn test-compile -pl iotdb-client/cli -am -DskipTests` - `mvn test-compile -pl iotdb-client/cli -am -P with-zh-locale -DskipTests` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
