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

QNetworkAccessManager establishes connection to defined QNetworkConfiguration, but doesn't use it (as would be expected)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.7.2
    • None
    • N8 FW 14.002
      Qt 4.7.3, Qt Mobility 1.1.2 (Qt SDK 1.1 internal, update 1.4.2011)

      Summary: Phone is already connected to a WLAN. App instructs QNetworkAccessManager to use a specific UMTS QNetworkConfiguration. When sending a HTTP request through the QNetworkAccessManager, Qt establishes a connection to the UMTS access point, but then fetches the data through the WLAN connection.

      Expected behavior:
      a) Qt app uses the UMTS access point to perform the internet request, as specified by the app. (Optimal and expected solution)
      b) Qt app doesn't establish UMTS connection at all and uses existing WLAN connection right away. (Not good, but at least more consistent)

      Instructions to reproduce:

      Sample app attached.
      The app prints available network configurations at startup. Adapt the source code to store a specific UMTS network configuration / access point (in the current source code set to "I_33" in line 39).
      Option 1: Pressing the "Send request" button directly sends a request to fetch the nokia.com HTML contents. The reply is printed in replyFinished().
      Option 2: If you press the "Set Configuration" button beforehand, the app instructs the QNetworkAccessManager to use the previously stored network configuration (UMTS). Next, press "Send request" to send the nokia.com HTML content request.

      Scenario 1) OK
      Phone isn't connected to the Internet when starting the app. Press the "Send request" button. The app establishes the default connection (-> UMTS).
      -> reply = the target nokia.com page.
      (ap-log1.txt)

      Scenario 2) OK
      Phone is already connected to (Nokia Guest) WLAN with login page prior to starting the Qt app.
      Press the "Send request" button. Qt App lets the system choose the access point to use and sends out the request.
      -> Qt app reuses existing WLAN connection. Reply is the WLAN login page HTML, not the target nokia.com HTML.
      (ap-log2.txt)

      Scenario 3) NOT OK
      Phone is already connected to (Nokia Guest) WLAN with login page prior to starting the Qt app.
      Press "Set Configuration" button to tell the QNetworkAccessManager to use the stored UMTS access point. Next, press "Send request" button.
      -> Qt app establishes UMTS connection. However, the reply is the WLAN login page, and not the target nokia.com as would have been expected through UMTS.
      (ap-log3.txt)

        1. ApDemo.zip
          11 kB
        2. NetworkAccessLogs.zip
          5 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            peter-har Peter Hartmann
            ajakl Andreas Jakl (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes