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

Qt should report error if trying to send POST request using QNetworkAccessManager to https endpoints without OpenSSL support

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • Some future release
    • 4.7.1
    • Network: SSL
    • None
    • Ubuntu Linux 10.10 with Qt 4.7.1 compiled from source release package. configure was run without explicitly specifying anything about SSL options (so default SSL support was enabled)

      Even if SSL is enabled when configuring Qt for compilation in Linux, it is not guaranteed that SSL support is enabled in Qt, if for example libssl-dev package on Ubuntu/Debian is missing while compiling Qt. Now it is impossible to discover this issue when using QNetworkAccessManager. For example:

      QNetworkAccessManager *networkManager = new QNetworkAccessManager(this);
      QNetworkRequest networkRequest;
      networkRequest.setUrl( QUrl("https://api.twitter.com/oauth/authorize") );
      networkRequest.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");

      ...
      ...
      connect(networkManager, SIGNAL(finished(QNetworkReply *)),
      this, SLOT(onRequestReplyReceived(QNetworkReply*) ));
      QNetworkReply *reply = networkManager->post(networkRequest, QByteArray("Some body"));

      signal "finished()" is never emitted and reply->error() gives NoError. Also Wireshark shows that the packets are never submitted through the ethernet controller, so QNetworkAccessManager cannot tell me that everything is fine.

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

            Unassigned Unassigned
            kypeli Johan Paul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes