Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66284

The "Validate Proxy" button in plugin management > proxy > advanced is not accurate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      The code that is used behind the "Validate Proxy" button in Plugin management > Advance tab > proxy >
      is using HttpClient configurations =>

      https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/java/hudson/ProxyConfiguration.java#L446-L461

      The issue is that it's not using the code that is actually used in Jenkins when doing request to proxy which is this one that is using jvm feature with Authenticator:
      => https://github.com/jenkinsci/jenkins/blob/f185e66ef70b67236d944eb5e06d6bad3516c889/core/src/main/java/hudson/ProxyConfiguration.java#L301

      It's not helping troubleshooting proxy issues at all, mainly for proxy with authentication.

      Acceptance criteria:
      The code that is used to validate the proxy is the same than the HTTP call that will be done in Jenkins later (for update site for example). By using ProxyConfiguration#open() or ProxyConfiguration#getInputStream()

      I am adding the screenshot where the button is to be more detailed.

            Unassigned Unassigned
            ajard A. Jard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: