You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "sahvx655-wq (via GitHub)" <gi...@apache.org> on 2026/05/30 10:11:43 UTC

[PR] reject signed hex group in isValidInet6Address [commons-validator]

sahvx655-wq opened a new pull request, #379:
URL: https://github.com/apache/commons-validator/pull/379

   isValidInet6Address parses each hex group with Integer.parseInt(octet, 16), which tolerates a leading '+', so addresses like 1:2:3:4:5:6:7:+8, fe80::+1 and ::+f are accepted even though they are not valid IPv6 literals (JDK InetAddress.getByName rejects them); the '-' form is already caught by the existing octetInt < 0 check, so only '+' slips through.


-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Reject signed hex group in InetAddressValidator.isValidInet6Address(String) [commons-validator]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory commented on PR #379:
URL: https://github.com/apache/commons-validator/pull/379#issuecomment-4582810383

   @sahvx655-wq 
   
   Thank you for the PR. I merged the PR and followed up with a clean up to remove an unnecessary duplicate call.
   


-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] reject signed hex group in isValidInet6Address [commons-validator]

Posted by "garydgregory (via GitHub)" <gi...@apache.org>.
garydgregory merged PR #379:
URL: https://github.com/apache/commons-validator/pull/379


-- 
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: issues-unsubscribe@commons.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org