Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2839

CXF HttpConduit doesn't read VM proxy settings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.6, 2.2.7, 2.2.8
    • 2.2.12, 2.3.1
    • None
    • None

    Description

      When setting proxy server as VM parameters http.proxyHost, http.proxyPort,
      proxySet, http.nonProxyHosts. HttpConduit doesn't read those properties and set proxy server.

      I have to manually set these after creating the client.

      if("true".equalsIgnoreCase(System.getProperty("proxySet")))

      { Client client = ClientProxy.getClient(service); HTTPConduit http = (HTTPConduit) client.getConduit(); HTTPClientPolicy httpClientPolicy = http.getClient(); httpClientPolicy.setProxyServer(System.getProperty("http.proxyHost")); httpClientPolicy.setProxyServerPort(Integer.parseInt(System.getProperty("http.proxyPort"))); }

      Attachments

        1. 0001-Fix-typo.patch
          1 kB
          Guillaume Sauthier
        2. 0002-CXF-2839-CXF-HttpConduit-doesn-t-read-VM-proxy-setti.patch
          18 kB
          Guillaume Sauthier

        Activity

          People

            dkulp Daniel Kulp
            idar Idar Borlaug
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: