Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35022

network cookies: send domain attribute also from an IP address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.2.0 Beta1
    • Fix Version/s: 5.3.0
    • Component/s: Network: Cookies
    • Labels:
      None

      Description

      http://tools.ietf.org/html/rfc6265#section-4.1.1 specifies that the domain name should be as described in http://tools.ietf.org/html/rfc1034#section-3.5 and http://tools.ietf.org/html/rfc1123#section-2.1 ; the latter RFC relaxes domain names to also contain IP addresses.

      Since we call QUrl::toAce() in our cookie implementation, this does not work for IPv6 addresses.

      Solution: check whether domain is an IP(v6) address (via QHostAddress::protocol() ?) and if yes, do not call QUrl::toAce().

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            peter-har Peter Hartmann
            Reporter:
            peter-har Peter Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes