elaysia-feng opened a new pull request, #16551:
URL: https://github.com/apache/dubbo/pull/16551

   ## What is the purpose of the change?
   
   Fixes #16547.
   
   DefaultHttpRequest.serverPort() attempted to parse the host portion of an 
authority as an integer. This change parses the port suffix and avoids treating 
colons inside bracketed IPv6 addresses as port separators in serverName() and 
serverPort().
   
   ## Verification
   
   - Targeted Maven regression test: 8 tests passed on JDK 21.
   - Before the fix, the same tests reproduced NumberFormatException for IPv4, 
hostname and IPv6 authorities with ports, and truncation for IPv6 without a 
port.
   
   ## Checklist
   
   - [x] Linked the issue for this change.
   - [x] Explained the behavior and the fix.
   - [x] Added regression tests.
   - [ ] GitHub Actions checks have completed.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to