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-71651] Fix administrative monitor buttons #191

Merged
merged 1 commit into from Jul 17, 2023

Conversation

rkivisto
Copy link
Contributor

@rkivisto rkivisto commented Jul 14, 2023

JENKINS-71651

Reproduction environment

A fresh install of Jenkins 2.401.2 LTS
Choosing to install no plugins during the wizard
Installing Health Advisor by CloudBees (https://plugins.jenkins.io/cloudbees-jenkins-advisor/) Version 336.v4d00382fe22c

openjdk version "11.0.18" 2023-01-17
OpenJDK Runtime Environment Temurin-11.0.18+10 (build 11.0.18+10)
OpenJDK 64-Bit Server VM Temurin-11.0.18+10 (build 11.0.18+10, mixed mode)

Issue

When clicking the "Configure Now" or "Uninstall Plugin" buttons in the administrative monitor for Jenkins Health Advisor by CloudBees plugin, the buttons do not redirect you:
Jul-14-2023 15-12-21

Expected behaviour

Usually these buttons redirect you to:
JENKINS_URL/manage/cloudbees-jenkins-advisor/
JENKINS_URL/pluginManager/installed

Testing done

After my changes were implemented, I again ran: mvn hpi:run -Djenkins.version=2.404 and the administrative monitor is working again:
Jul-14-2023 16-24-27

I also ran mvn clean verify and all the tests pass still, and took the target/cloudbees-jenkins-advisor.hpi and installed it on my Jenkins 2.401.2 LTS instance described in the Reproduction environment, and after restarting, the administrative monitor was also working correctly now:
Jul-14-2023 17-12-07

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests - that demonstrates feature works or fixes the issue

@rkivisto rkivisto changed the title [JENKINS-71651] Fix administrative monitor after removal of Prototype.js [JENKINS-71651] Fix administrative monitor buttons Jul 16, 2023
@Dohbedoh
Copy link
Contributor

Found out that the real problem originates from the use of @QueryParameter#fixEmpty. Maybe this is an impact of a Stapler upgrade in Core ? not sure..

@PierreBtz
Copy link
Contributor

PierreBtz commented Jul 17, 2023

I don't understand the link between the removal Prototype js and your fix tbh.

Edit: ok reading Allan's update now, it makes more sense.

@PierreBtz
Copy link
Contributor

Caused by jenkinsci/jenkins#7203

@PierreBtz PierreBtz merged commit 985eaef into jenkinsci:master Jul 17, 2023
15 checks passed
@PierreBtz PierreBtz added the bug label Jul 17, 2023
@rkivisto rkivisto deleted the JENKINS-70906 branch July 24, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants