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

QNetworkCookie::parseCookies ignores empty domain attribute instead of ignoring entire cookie.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.7.0
    • Network: Cookies
    • None

    Description

      Now QNetworkCookie::parseCookies just ignores empty domain attribute instead of ignoring entire cookie.

      But rfc-6265 defines different:
      http://www.rfc-base.org/txt/rfc-6265.txt:

       If the attribute-value is empty, the behavior is undefined.  However,
         the user agent SHOULD ignore the cookie-av entirely.
      

      https://bugreports.qt.io/browse/QTBUG-15794 - https://codereview.qt-project.org/#/c/28396/

      Just an example: https://developer.gnome.org/libsoup/stable/SoupCookie.html#soup-cookie-parse
      If domain is NULL this is not a valid state for a SoupCookie, and you will need to fill in some appropriate string for the domain if you want to actually make use of the cookie.

      Attachments

        Activity

          People

            manordheim MÃ¥rten Nordheim
            val Val (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: