Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34254

Shutdown of jenkins via the /exit URL doesn't work in 2.0 b/c of 403

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      1) Start jenkins from WAR, giving a JENKINS_HOME directory
      2) Install initial plugins and create an admin user (probably not needed), then restart and log in
      3) Try to exit jenkins the "right" way by visiting http://localhost:8080/exit
      4) Click the "try POST" button
      5) See attached 403 error message:

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly
            test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java
            http://jenkins-ci.org/commit/jenkins/f0efdbab087ea26342a034da198d055bd7141b8a
            Log:
            JENKINS-34254 Add test

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java http://jenkins-ci.org/commit/jenkins/f0efdbab087ea26342a034da198d055bd7141b8a Log: JENKINS-34254 Add test
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/pom.xml
            core/src/main/java/hudson/security/csrf/CrumbFilter.java
            core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly
            core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.properties
            test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java
            http://jenkins-ci.org/commit/jenkins/76c9f8beacc681663571c925b5ee090222407e34
            Log:
            Merge pull request #3187 from daniel-beck/JENKINS-34254-v2

            JENKINS-34254 Fix RequirePOST form

            Compare: https://github.com/jenkinsci/jenkins/compare/814d202716a6...76c9f8beacc6

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/pom.xml core/src/main/java/hudson/security/csrf/CrumbFilter.java core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.properties test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java http://jenkins-ci.org/commit/jenkins/76c9f8beacc681663571c925b5ee090222407e34 Log: Merge pull request #3187 from daniel-beck/ JENKINS-34254 -v2 JENKINS-34254 Fix RequirePOST form Compare: https://github.com/jenkinsci/jenkins/compare/814d202716a6...76c9f8beacc6
            Hide
            danielbeck Daniel Beck added a comment -

            Fixed towards 2.96.

            Show
            danielbeck Daniel Beck added a comment - Fixed towards 2.96.
            Hide
            olivergondza Oliver Gondža added a comment -

            Given how long was it broken, there is no rush in expediting this into LTS. Will not be in .3.

            Show
            olivergondza Oliver Gondža added a comment - Given how long was it broken, there is no rush in expediting this into LTS. Will not be in .3.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/pom.xml
            core/src/main/java/hudson/security/csrf/CrumbFilter.java
            core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly
            core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.properties
            test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java
            http://jenkins-ci.org/commit/jenkins/bed6ccd71921c9321919f7a042864dbbbf63243a
            Log:
            Merge pull request #3187 from daniel-beck/JENKINS-34254-v2

            JENKINS-34254 Fix RequirePOST form

            (cherry picked from commit 76c9f8beacc681663571c925b5ee090222407e34)

            Compare: https://github.com/jenkinsci/jenkins/compare/2904044e5105...bed6ccd71921

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/pom.xml core/src/main/java/hudson/security/csrf/CrumbFilter.java core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.jelly core/src/main/resources/hudson/security/csrf/CrumbFilter/retry.properties test/src/test/java/hudson/security/csrf/DefaultCrumbIssuerTest.java http://jenkins-ci.org/commit/jenkins/bed6ccd71921c9321919f7a042864dbbbf63243a Log: Merge pull request #3187 from daniel-beck/ JENKINS-34254 -v2 JENKINS-34254 Fix RequirePOST form (cherry picked from commit 76c9f8beacc681663571c925b5ee090222407e34) Compare: https://github.com/jenkinsci/jenkins/compare/2904044e5105...bed6ccd71921

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                svanoort Sam Van Oort
              • Votes:
                4 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: