jenkinsci / dashboard-view-plugin

Jenkins dashboard-view plugin
https://plugins.jenkins.io/dashboard-view/
MIT License
46 stars 105 forks source link

You must use POST method to trigger builds. (From scripts you may instead pass a per-project authentication token, or authenticate with your API token.) If you see this page, it may be because a plugin offered a GET link; file a bug report for that plugin. #335

Closed 0k00l closed 7 months ago

0k00l commented 7 months ago

Jenkins and plugins versions report

Jenkins: 2.445 OS: Linux - 4.18.0-513.11.1.el8_9.x86_64 Java: 11.0.15.1 - Oracle Corporation (Java HotSpot(TM) 64-Bit Server VM)

ace-editor:1.1 active-directory:2.34 analysis-model-api:11.15.0 ant:497.v94e7d9fffa_b_9 antisamy-markup-formatter:162.v0e6ec0fcfcf6 apache-httpcomponents-client-4-api:4.5.14-208.v438351942757 apache-httpcomponents-client-5-api:5.3.1-1.0 artifactory:4.0.3 authentication-tokens:1.53.v1c90fd9191ab aws-credentials:218.v1be9466ec5da aws-java-sdk:1.12.633-430.vf9a_e567a_244f aws-java-sdk-cloudformation:1.12.633-430.vf9a_e567a_244f aws-java-sdk-codebuild:1.12.633-430.vf9a_e567a_244f aws-java-sdk-ec2:1.12.633-430.vf9a_e567a_244f aws-java-sdk-ecr:1.12.633-430.vf9a_e567a_244f aws-java-sdk-ecs:1.12.633-430.vf9a_e567a_244f aws-java-sdk-efs:1.12.633-430.vf9a_e567a_244f aws-java-sdk-elasticbeanstalk:1.12.633-430.vf9a_e567a_244f aws-java-sdk-iam:1.12.633-430.vf9a_e567a_244f aws-java-sdk-kinesis:1.12.633-430.vf9a_e567a_244f aws-java-sdk-logs:1.12.633-430.vf9a_e567a_244f aws-java-sdk-minimal:1.12.633-430.vf9a_e567a_244f aws-java-sdk-secretsmanager:1.12.633-430.vf9a_e567a_244f aws-java-sdk-sns:1.12.633-430.vf9a_e567a_244f aws-java-sdk-sqs:1.12.633-430.vf9a_e567a_244f aws-java-sdk-ssm:1.12.633-430.vf9a_e567a_244f backup:1.6.1 blueocean:1.27.10 blueocean-autofavorite:1.2.5 blueocean-bitbucket-pipeline:1.27.10 blueocean-commons:1.27.10 blueocean-config:1.27.10 blueocean-core-js:1.27.10 blueocean-dashboard:1.27.10 blueocean-display-url:2.4.2 blueocean-events:1.27.10 blueocean-git-pipeline:1.27.10 blueocean-github-pipeline:1.27.10 blueocean-i18n:1.27.10 blueocean-jira:1.27.10 blueocean-jwt:1.27.10 blueocean-personalization:1.27.10 blueocean-pipeline-api-impl:1.27.10 blueocean-pipeline-editor:1.27.10 blueocean-pipeline-scm-api:1.27.10 blueocean-rest:1.27.10 blueocean-rest-impl:1.27.10 blueocean-web:1.27.10 bootstrap4-api:4.6.0-6 bootstrap5-api:5.3.2-3 bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9 branch-api:2.1148.vce12cfcdf090 build-name-setter:2.4.1 build-pipeline-plugin:2.0.1 build-user-vars-plugin:1.9 built-on-column:1.4 caffeine-api:3.1.8-133.v17b1ff2e0599 checks-api:2.0.2 cloud-stats:336.v788e4055508b cloudbees-bitbucket-branch-source:873.v0ed259216f8d cloudbees-folder:6.921.vfb_b_224371fb_4 cobertura:1.17 code-coverage-api:4.99.0 command-launcher:107.v773860566e2e commons-httpclient3-api:3.1-3 commons-lang3-api:3.13.0-62.v7d18e55f51e2 commons-text-api:1.11.0-95.v22a_d30ee5d36 conditional-buildstep:1.4.3 config-file-provider:968.ve1ca_eb_913f8c configuration-as-code:1775.v810dc950b_514 convert-to-pipeline:1.0 covcomplplot:1.1.1 coverage:1.10.0 credentials:1319.v7eb_51b_3ac97b credentials-binding:657.v2b_19db_7d6e6d cvs:2.19.1 data-tables-api:1.13.8-2 dependency-check-jenkins-plugin:5.4.6 disk-usage:1.2 display-url-api:2.200.vb_9327d658781 docker-commons:439.va_3cb_0a_6a_fb_29 docker-compose-build-step:1.0 docker-java-api:3.3.4-86.v39b_a_5ede342c docker-plugin:1.6 docker-workflow:572.v950f58993843 dtkit-api:3.0.2 durable-task:550.v0930093c4b_a_6 echarts-api:5.4.3-2 email-ext:2.104 emailext-template:1.5 envinject:2.908.v66a_774b_31d93 envinject-api:1.199.v3ce31253ed13 extended-choice-parameter:376.v2e02857547ba external-monitor-job:215.v2e88e894db_f8 favorite:2.208.v91d65b_7792a_c font-awesome-api:6.5.1-2 forensics-api:2.3.0 git:5.2.1 git-client:4.6.0 git-parameter:0.9.19 git-server:114.v068a_c7cc2574 github:1.38.0 github-api:1.318-461.v7a_c09c9fa_d63 github-branch-source:1772.va_69eda_d018d4 github-pr-coverage-status:2.2.0 github-pullrequest:0.6.1 gradle:2.10 gson-api:2.10.1-15.v0d99f670e0a7 h2-api:11.1.4.199-12.v9f4244395f7a handlebars:3.0.8 handy-uri-templates-2-api:2.1.8-30.v7e777411b_148 htmlpublisher:1.32 http_request:1.18 instance-identity:185.v303dc7c645f9 ionicons-api:56.v1b_1c8c49374e ivy:2.5 jackson2-api:2.16.1-373.ve709c6871598 jacoco:3.3.5 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:243.vb_b_503b_b_45537 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.9-1 jdk-tool:73.vddf737284550 jenkins-design-language:1.27.10 jenkins-jira-issue-updater:1.18 jenkins-multijob-plugin:623.v03401733c9a_9 jersey2-api:2.41-133.va_03323b_a_1396 jira:3.12 jira-ext:114.v7b_8b_1d4274c6 jira-steps:2.0.165.v8846cf59f3db jjwt-api:0.11.5-77.v646c772fddb_0 jnr-posix-api:3.1.18-1 job-exporter:0.4 job-import-plugin:3.6 jobConfigHistory:1229.v3039470161a_d jobcacher:432.vb_b_fc2291c917 joda-time-api:2.12.7-29.v5a_b_e3a82269a jquery:1.12.4-1 jquery-detached:1.2.1 jquery3-api:3.7.1-1 jsch:0.2.16-86.v42e010d9484b_ json-api:20240205-27.va_007549e895c json-path-api:2.9.0-33.v2527142f2e1d junit:1259.v65ffcef24a_88 junit-realtime-test-reporter:146.v82b_01a_5d2b3a kerberos-sso:1.11 ldap:711.vb_d1a_491714dc locale:431.v3435fa_8f8445 lockable-resources:1232.v512d6c434ebd mailer:463.vedf8358e006b mapdb-api:1.0.9-28.vf251ce40855d mask-passwords:173.v6a_077a_291eb_5 matrix-auth:3.2.1 matrix-project:822.824.v14451b_c0fd42 maven-info:0.3.1 maven-plugin:3.23 maven-repo-cleaner:1.3 mercurial:1260.vdfb_723cdcc81 mina-sshd-api-common:2.12.0-90.v9f7fb_9fa3d3b mina-sshd-api-core:2.12.0-90.v9f7fb_9fa3d3b momentjs:1.1.1 multibranch-build-strategy-extension:48.v3dc306525d0c nodejs:1.6.1 okhttp-api:4.11.0-172.vda_da_1feeb_c6e pam-auth:1.10 parameterized-scheduler:262.v00f3d90585cc parameterized-trigger:787.v665fcf2a830b pipeline-build-step:540.vb_e8849e1a_b_d8 pipeline-config-history:1.6 pipeline-deploymon:1.0 pipeline-github:2.8-159.09e4403bc62f pipeline-githubnotify-step:49.vf37bf92d2bc8 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:704.vc58b_8890a_384 pipeline-input-step:491.vb_07d21da_1afb pipeline-maven:1376.v18876d10ce9c pipeline-maven-api:1376.v18876d10ce9c pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2175.v76a_fff0a_2618 pipeline-model-definition:2.2175.v76a_fff0a_2618 pipeline-model-extensions:2.2175.v76a_fff0a_2618 pipeline-multibranch-defaults:2.1 pipeline-npm:204.v4dc4c2202625 pipeline-rest-api:2.34 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2175.v76a_fff0a_2618 pipeline-stage-view:2.34 pipeline-timeline:1.0.3 pipeline-utility-steps:2.16.2 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:3.8.0 popper-api:1.16.1-3 popper2-api:2.11.6-4 prism-api:1.29.0-10 publish-over:0.22 publish-over-ssh:1.25 pubsub-light:1.18 resource-disposer:0.23 run-condition:1.7 saml:4.464.vea_cb_75d7f5e0 scm-api:683.vb_16722fb_b80b script-security:1321.va_73c0795b_923 snakeyaml-api:2.2-111.vc6598e30cc65 sse-gateway:1.26 ssh-credentials:308.ve4497b_ccd8f4 ssh-slaves:2.948.vb_8050d697fec ssh-steps:2.0.68.va_d21a_12a_6476 sshd:3.322.v159e91f6a_550 structs:337.v1b_04ea_4df7c8 subversion:2.17.3 test-results-analyzer:0.4.1 testng-plugin:835.v51ed3da_fcc35 timestamper:1.26 token-macro:400.v35420b922dcb trilead-api:2.133.vfb_8a_7b_9c5dd1 variant:60.v7290fc0eb_b_cd versionnumber:1.11 warnings-ng:10.7.0 windows-slaves:1.8.1 workflow-aggregator:596.v8c21c963d92d workflow-api:1291.v51fd2a_625da_7 workflow-basic-steps:1042.ve7b_140c4a_e0c workflow-cps:3853.vb_a_490d892963 workflow-cps-global-lib:612.v55f2f80781ef workflow-durable-task-step:1331.vc8c2fed35334 workflow-job:1400.v7fd111b_ec82f workflow-multibranch:783.va_6eb_ef636fb_d workflow-remote-loader:1.6 workflow-scm-step:415.v434365564324 workflow-step-api:657.v03be8115821b workflow-support:865.v43e78cc44e0d ws-cleanup:0.45 xunit:3.1.3

What Operating System are you using (both controller, and any agents involved in the problem)?

Red Hat 8.9 (we don't use remote agents, only built-in local)

Reproduction steps

  1. Click project on dashboard
  2. Click Build Now
  3. "You must use POST method to trigger builds. (From scripts you may instead pass a per-project authentication token, or authenticate with your API token.) If you see this page, it may be because a plugin offered a GET link; file a bug report for that plugin." appears

Expected Results

Project should build and summary page should show

Actual Results

"You must use POST method to trigger builds. (From scripts you may instead pass a per-project authentication token, or authenticate with your API token.) If you see this page, it may be because a plugin offered a GET link; file a bug report for that plugin." shows with Proceed button. After clicking on Proceed button build works but page stays blank.

Anything else?

Most of our projects works, we have problem only with projects. In browser web console i can see: 405 Method Not Allowed (url for Build Now links: https://jenkins.int.nbp.pl:8443/view/EOD/job/1.%20Odtw%C3%B3rz%20repozytorium%20EOD/build?delay=0sec)

Are you interested in contributing a fix?

Yes

0k00l commented 7 months ago

Anything else? "Most of our projects works, we have problem only with projects" should be "Most of our projects works, we have problem only with one project"

0k00l commented 7 months ago

Tried: https://issues.jenkins.io/browse/JENKINS-20085 but in newest version of Jenkins Functions.globalIota doesn't exist.

TobiX commented 7 months ago

It doesn't look like you have dashboard-view-plugin installed at all, so this looks like a problem with a different plugin (or Jenkins core?).

Suspicion: The link is generated by an old plugin which was never updated for https://www.jenkins.io/blog/2023/05/12/removing-prototype-from-jenkins/, so the link turned from a JavaScript-generated POST action to a plain link.