You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Alexander Dietrich (JIRA)" <ji...@apache.org> on 2007/05/31 10:23:15 UTC

[jira] Created: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Cookie class cannot handle IPv6 literals
----------------------------------------

                 Key: HTTPCLIENT-654
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 3.1 RC1
            Reporter: Alexander Dietrich


When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber updated HTTPCLIENT-654:
------------------------------------

    Attachment: 2k7-06-01-cookie3.x-ipv6.txt

I was too tired yesterday. This one has a chance of working...

> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>            Priority: Trivial
>             Fix For: 4.0 Alpha 2
>
>         Attachments: 2k7-06-01-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber updated HTTPCLIENT-654:
------------------------------------

    Priority: Trivial  (was: Major)

Literal IPv6 addresses are not and will not be officially supported by HttpClient 3.x. Even if we can fix this specific problem, that does not mean that IPv6 literals will work as expected. For example, domain matching in cookies may or may not do what you expect. We don't know, and there are no test cases.

cheers,
  Roland


> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>            Priority: Trivial
>             Fix For: 3.1 Final
>
>         Attachments: 2k7-05-31-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski updated HTTPCLIENT-654:
-----------------------------------------

    Fix Version/s:     (was: 3.1 Final)
                   4.0 Alpha 2

To be fixed in 4.0 codeline where we could make use of regexp to test whether a cookie domain attribute is a IPv4 or IPv6 address

Oleg

> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>            Priority: Trivial
>             Fix For: 4.0 Alpha 2
>
>         Attachments: 2k7-05-31-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Alexander Dietrich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Dietrich updated HTTPCLIENT-654:
------------------------------------------

        Fix Version/s: 3.1 Final
          Environment: IPv6
    Affects Version/s: 3.0.1

> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>             Fix For: 3.1 Final
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-654.
------------------------------------------

    Resolution: Fixed

This method has been removed in HttpClient 4.0 branch

Oleg

> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>            Priority: Trivial
>             Fix For: 4.0 Alpha 2
>
>         Attachments: 2k7-06-01-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber updated HTTPCLIENT-654:
------------------------------------

    Attachment:     (was: 2k7-05-31-cookie3.x-ipv6.txt)

> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>            Priority: Trivial
>             Fix For: 4.0 Alpha 2
>
>         Attachments: 2k7-06-01-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (HTTPCLIENT-654) Cookie class cannot handle IPv6 literals

Posted by "Roland Weber (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Roland Weber updated HTTPCLIENT-654:
------------------------------------

    Attachment: 2k7-05-31-cookie3.x-ipv6.txt

Hello Alexander,

please see whether the attached patch fixes the problem.
Maybe you could contribute a unit test?

cheers,
  Roland


> Cookie class cannot handle IPv6 literals
> ----------------------------------------
>
>                 Key: HTTPCLIENT-654
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-654
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 3.0.1, 3.1 RC1
>         Environment: IPv6
>            Reporter: Alexander Dietrich
>             Fix For: 3.1 Final
>
>         Attachments: 2k7-05-31-cookie3.x-ipv6.txt
>
>
> When performing requests using IPv6 literals, Cookie.setDomain() will attempt to trim the port number by cutting off the domain string at the first colon. This leads to MalformedCookieExceptions being thrown by CookieSpecBase later on.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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