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

QNetworkAccessManager FTP - authenticationRequired signal emitted twice after failed login

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.0.0
    • Network: FTP
    • None

    Description

      Attempt to get ftp://ftptest@qt-test-server/...
      or ftp://ftptest:wrongpassword@qt-test-server/...

      Login fails (the first case uses "anonymous@" as the password, which is a separate problem)

      QFtpPI emits the error signal, which triggers QNAM to emit authenticationRequired via QNetworkAccessFtpBackend::ftpDone()
      The user code supplied the correct credentials (ftptest:password)
      This queues a login on QFtp
      However QFtpPI has an empty command queue, so the finished signal is emitted - which calls QNetworkAccessFtpBackend::ftpDone() again. This emits authenticationRequired a second time.

      Test case - tests/manual/qnetworkaccessmanager/qget
      By design, it only supplies login credentials once for each request.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              shkearns Shane Kearns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes