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

Details

    • Bug
    • Resolution: Out of scope
    • 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)

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes