-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Remove HTTP response headers for the remoting-based CLI #5452
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but might also want to get rid of the now-dangling reference to X-Jenkins-CLI-Port
in test/src/test/java/hudson/cli/CLITest.java
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think this is safe. (Came up sometime recently but I forget where.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I referenced the advertiseHeaders() method in the FLoC thread, likely this is where @jglick saw it I'd guess. Thanks for the cleanup @daniel-beck !
I see reliance on these headers in https://github.com/jenkinsci/master-to-master-api-plugin/blob/bb48f24779f4873877bbf6500621377e077ffda3/src/main/java/org/jenkinsci/plugins/mastertomasterapi/simple/SIMClient.java . I'd guess we do not care too much about this plugin in the current state (not published in the UC)
We may merge it in 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process
Somewhere else I think. Does not matter now. |
This was not the change I thought it was. it did not remove |
Related to #2795, #3838, #4350, and aebb3b2.
Untested; PR build and @jglick will be able to tell us whether this is correct. I think these headers are unused now; I couldn't find a reference here or in Remoting at least.
CLI_HOST_NAME
is still advertised asX-Jenkins-JNLP-Host
, the port asX-Jenkins-JNLP-Port
.Unsure whether to leave
jenkins/test/src/test/java/hudson/cli/CLITest.java
Line 179 in 95e8549
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).