You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2013/04/04 15:57:16 UTC

[jira] [Commented] (HTTPCLIENT-1319) InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13622220#comment-13622220 ] 

Sebb commented on HTTPCLIENT-1319:
----------------------------------

Added to trunk in
URL: http://svn.apache.org/r1464531
Log:
HTTPCLIENT-1319 InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups

Modified:
    httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/conn/util/InetAddressUtils.java
    httpcomponents/httpclient/trunk/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java


Also 4.2.x:

URL: http://svn.apache.org/r1464551
Log:
HTTPCLIENT-1319 InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups

Modified:
    httpcomponents/httpclient/branches/4.2.x/RELEASE_NOTES.txt
    httpcomponents/httpclient/branches/4.2.x/httpclient/src/main/java/org/apache/http/conn/util/InetAddressUtils.java
    httpcomponents/httpclient/branches/4.2.x/httpclient/src/test/java/org/apache/http/conn/util/TestInetAddressUtils.java


                
> InetAddressUtils.isIPv6HexCompressedAddress does not detect excess groups
> -------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1319
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1319
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>    Affects Versions: 4.3 Alpha1
>            Reporter: Sebb
>            Priority: Minor
>             Fix For: 4.3 Final
>
>
> The IPV6 compressed format regex allows 0-6 hex groups before and after the ::.
> This does not detect too many groups (there should be at most 7 surrounding groups in total).
> It also allows no groups, i.e "::" which is not permitted AFAIK. [Edit: this is allowed, see http://tools.ietf.org/html/rfc4291#section-2.2]
> The first issue could be detected by counting the number of ':' characters in the string. 
> There should be no more than 7 colons.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org