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

QNetworkAccessManager caches bad auth credentials

    XMLWordPrintable

Details

    Description

      I use QNetworkAccessManager to send multiple HTTP requests to a service that requires authentication. Pretty simple stuff, and it has worked just fine in all QT version before QT5.
      Important information: I am sending multiple request to the same url, which is important piece in order to engage the auth caching mechanism.

      However, let's say you specify invalid credentials in your http request. If you attempt to now specify a new set of credentials that is valid. QNetworkAccessManager will use previously failed credentials in the new request you are about send.

      Workaround is to call to manager->clearAccessCache() before sending each request.

      I am hoping this gets addressed soon, since it is a critical bug.

      Attachments

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

        Activity

          People

            kavi Kalle Viironen
            acolovic Aki Colovic
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes