Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-48775] HACKY HACKY FIX #3283

Merged
merged 1 commit into from Nov 16, 2018
Merged

Conversation

stephenc
Copy link
Member

@stephenc stephenc commented Feb 6, 2018

  • Cheat and try a HTTP url if the proxy has never been accessed with a HTTP url before attempting a HTTPS url

See JENKINS-48775.

Proposed changelog entries

  • The JRE does will only discover authentication for a HTTP proxy when accessing a HTTP url. If the only URLs accessed are HTTPS then the authentication will never be discovered, so now the proxy connection will attempt to connect to a HTTP url if the first URL to access is HTTPS url

Submitter checklist

  • JIRA issue is well described
  • Changelog entry appropriate for the audience affected by the change (users or developer, depending on the change). Examples
    * Use the Internal: prefix if the change has no user-visible impact (API, test frameworks, etc.)
  • Appropriate autotests or explanation to why this change has no tests
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@daniel-beck @rtyler @jenkinsci/code-reviewers

This is a screaming dirty hack... but should work ;-)

- Cheat and try a HTTP url if the proxy has never been accessed with a HTTP url before attempting a HTTPS url
@oleg-nenashev
Copy link
Member

oleg-nenashev commented Feb 24, 2018 via email

@stephenc
Copy link
Member Author

@oleg-nenashev we stopped that iirc.

@oleg-nenashev oleg-nenashev removed their request for review March 3, 2018 20:53
@oleg-nenashev
Copy link
Member

oleg-nenashev commented Mar 3, 2018

@stephenc responded in the private message. Just to set the expectation, I have no plan to review this PR. If you are unable to get reviews from your colleagues or from other Jenkins reviewers, you have an option to merge it on your own. So far Jenkins project has no merge policy, so any Core team member is eligible to merge whatever he wants.

@stephenc stephenc merged commit d428456 into jenkinsci:master Nov 16, 2018
@stephenc stephenc deleted the jenkins-48775 branch November 16, 2018 11:31
}
}
authCacheSeeded = true;
} else if ("https".equals(url.getProtocol())){
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be "http" not "https" but the only side effect is that we apply the workaround of attempting a connect in cases where it might not already be needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants