jaloon opened a new issue, #35289:
URL: https://github.com/apache/shardingsphere/issues/35289

   ## Bug Report
   
   When parsing a jdbcURL containing an IPv6 address using 
StandardJdbcParser.parse, an incorrect port number was obtained.
   
   e.g.
   ```java
   String url = "jdbc:mysql://[fe80::d114:22b3:a0d9:2b3]:3306/db_test";
   JdbcUrl jdbcUrl = new StandardJdbcUrlParser().parse(url);
   System.out.println(jdbcUrl.getPort());
   ```
   
   ### Which version of ShardingSphere did you use?
   
   5.5.0 ~ 5.5.2
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-JDBC
   
   ### Expected behavior
   
   The above example code outputs 3306
   
   ### Actual behavior
   
   The example code above throws exception
   java.lang.NumberFormatException: For input string: ""
   
   ### Reason analyze (If you can)
   
   
![Image](https://github.com/user-attachments/assets/2e708bbe-ab5a-4a31-9789-888c4f78d3c8)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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]

Reply via email to