Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
Jenkins 1.480.3 (Winstone and Tomcat)
LDAP plugin 1.1 and 1.2
Description
Hovering mouse over a job name brings up a context menu. Clicking Build Now from the context menu produces the following warning and a Proceed button. Build starts only if Proceed button is pressed. Context menu is accessible at least in job list view (e.g. default All view) and from the breadcrumb. Clicking Build Now on the left menu on a job page works normally, i.e. without warnings.
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.
Attachments
Issue Links
- depends on
-
JENKINS-19368 "You must use POST method to trigger builds" from Context Menu
-
- Resolved
-
- is duplicated by
-
JENKINS-17266 "Build now" link from context menu no longer works for parameterized builds
-
- Resolved
-
-
JENKINS-16913 Warning use POST method on click to 'Build now' in a context menu
-
- Resolved
-
- is related to
-
JENKINS-17110 Hover-over "Build Now" broken for parameterized jobs: "This page expects a form submission"
-
- Resolved
-
Code changed in jenkins
User: Jesse Glick
Path:
changelog.html
core/src/main/java/jenkins/model/ModelObjectWithContextMenu.java
core/src/main/resources/hudson/model/AbstractProject/sidepanel.jelly
core/src/main/resources/lib/layout/breadcrumbs.js
core/src/main/resources/lib/layout/task.jelly
http://jenkins-ci.org/commit/jenkins/b9c18a7b4c6d194645a20312352cd4d4994eafb4
Log:
[FIXED JENKINS-16844] MenuItem.post allows context menu items like Build Now to send a POST request.
Currently just shows a hover notification; TBD if there are use cases for displaying the response.
–
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.