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

proxyAuthenticationRequired signal is not fired if the application ran as a windows service

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.13.0
    • Network: Proxies
    • None
    • Windows

    Description

      1. Start application as windows service.
      2. Use a proxy which requires authentication. 
      3. Connect to QNetworkAccessManager::proxyAuthenticationRequired signal

       

       

      Bug:

      The websocket can not connect to the url if a proxy server is enabled and the connected slot is not called. 

       

      Possible reason:

      The actual proxy information (enabled, host, port) are stored in the following registry path: 

      "Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer" 

      which belongs to the current user and windows services does not have access to the current_user keys. 

       

      As a result the connection is not built and runs into a timeout. 

       

      Possible solutions:

      • **More sophisticated error handling to let the clients know about this issue.
      • Impersonate current user to access proxy information.

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            amaracs Adam Maracska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes