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

QNetworkAccessManager FTP - authenticationRequired signal should be asking for password if URL contains only a username

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 5.0.0
    • Network: FTP
    • None

    Description

      RFC1738 states:
      If the URL supplies a user name but no password, and the remote
      server requests a password, the program interpreting the FTP URL
      should request one from the user.

      Current behaviour is that login is attempted using "anonymous@" as the password

      Correct behaviour:
      after receiving 331 response, emit authenticationRequired (prefill the QAuthenticator username with the username that was used)

      Maybe easier implementation:
      emit authenticationRequired before queuing the login

      Test cases:
      ftp://ftptest@qt-test-server/... (should prompt for password)
      ftp://ftptest:@qt-test-server/... (should attempt login with "" as password?)

      Attachments

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

        Activity

          People

            ryan_chu Ryan Chu
            shkearns Shane Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes