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

QNetworkCookie parses expires attribute incorrectly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 4.7.1
    • Fix Version/s: 5.0.0 Beta 1
    • Component/s: Network: Cookies
    • Labels:
      None
    • Commits:
      3ff70a838b5dd06cd55e17e1e55d5922e5155745

      Description

      Header looking like this: Set-Cookie: name=value; path=/; expires=
      being parsed different from any other browser, and sets expiration date in the past, instead of treating this cookie as 'session cookie', like other browsers do.
      Looks like QNetworkCookiePrivate::parseSetCookieHeaderLine() gets empty(default?) QDateTime from parseDateString() .

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              shkearns Shane Kearns
              Reporter:
              shekyan Sergey Shekyan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes