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

Do not cache network connections per username.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.0
    • 4.6.2
    • Network
    • None
    • fdcb3fe188cca00b1d7f1eae82304d8cca549996

      [I screwed up when raising this initially. It's also raised as http://bugreports.qt.nokia.com/browse/QTWEBKIT-152, that bug should be deleted I think]

      If user information is present in the Url, QNetworkAccessHttpBackend
      will cache the connection with a key in the format of user@hostname.
      This causes the following tests in QtWebKit to fail:

      LayoutTests/http/tests/xmlhttprequest/re-login.html
      LayoutTests/http/tests/xmlhttprequest/re-login-async.html

      The tests call the same url with user1 credentials, no credentials,
      user 2 credentials and no credentials. In the second and fourth calls
      Qt should use the most recently stored credentials. For the fourth
      call it currently uses user1's credentials instead of user2's. This
      is because it retrieves the cached connection from the third call
      and uses the user/pass in that connection's authenticator - which is
      user1's.

      In order to retrieve the connection with the most recently used
      credentials userinfo should be removed when caching the connection
      in QNetworkAccessCache. This will allow Qt to retrieve the connection
      used in the third call, in fact the same cached connection for all
      four calls.

      Tracked on QtWebKit at: https://bugs.webkit.org/show_bug.cgi?id=37084

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

            mgoetz Markus Goetz (Inactive)
            robert@roberthogan.net Robert Hogan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes