Plugin does not strip the "scheme://" string from host before doing a proxy ignore lookup

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Environment:
      Jenkins ver. 2.89.3
      Bitbucket Branch Source Plugin v 2.2.10

      When Jenkins is configured with a proxy (and more importantly a "No Proxy Host" list) the plugin cannot match the Bitbucket server addressĀ against theĀ noProxyHost variable. This means that the proxy is NOT ignored and when the plugin tries to connect to Bitbucket it fails.

      After further analysis it turns out that the

      private void setClientProxyParams(String host, HttpClientBuilder builder)

      method is not stripping the "scheme://" from the host parameter. This cause the no proxy lookup to fail. What needs to happen is, the scheme must be stripped before comparing it against the lookup list. The host parameter comes from theĀ 

      private CloseableHttpClient getHttpClient(String host)

      method which requires the scheme:// format.

      Ā 

      Ā 

            Assignee:
            Unassigned
            Reporter:
            Jaco Greyling
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: