Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.1 RC1
    • Fix Version/s: 4.0 Alpha 2
    • Component/s: HttpClient
    • Labels:
      None
    • Environment:
      IPv6

      Description

      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.

        Activity

        Hide
        rohit mehta added a comment - - edited

        I am also Facing the Problem using Httpclient for uploading the file in IPV6 scenario i.e. File Uploads fails.
        Is there any alternative solution for it.Whether the problem is due to I am passing Literal IPV6 address as a server URL.

        Show
        rohit mehta added a comment - - edited I am also Facing the Problem using Httpclient for uploading the file in IPV6 scenario i.e. File Uploads fails. Is there any alternative solution for it.Whether the problem is due to I am passing Literal IPV6 address as a server URL.
        Hide
        Oleg Kalnichevski added a comment -

        This method has been removed in HttpClient 4.0 branch

        Oleg

        Show
        Oleg Kalnichevski added a comment - This method has been removed in HttpClient 4.0 branch Oleg
        Hide
        Roland Weber added a comment -

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

        Show
        Roland Weber added a comment - I was too tired yesterday. This one has a chance of working...
        Hide
        Oleg Kalnichevski added a comment -

        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

        Show
        Oleg Kalnichevski added a comment - 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
        Hide
        Roland Weber added a comment -

        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

        Show
        Roland Weber added a comment - 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
        Hide
        Roland Weber added a comment -

        Hello Alexander,

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

        cheers,
        Roland

        Show
        Roland Weber added a comment - Hello Alexander, please see whether the attached patch fixes the problem. Maybe you could contribute a unit test? cheers, Roland

          People

          • Assignee:
            Unassigned
            Reporter:
            Alexander Dietrich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development