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

404 when canceling queue item that has already gone to an executor

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      1.479-SNAPSHOT. Set system quiet period to two seconds. Click Build Now next to a job, and when the queue item appears, click the red X next to it to cancel. Sometimes you will be shown http://localhost:8080/queue/item/21/cancelQueue as an error page:

      404 Not Found
      
      Stapler processed this HTTP request as follows, but couldn't find the resource to consume the request
      
      -> evaluate(<hudson.model.Hudson@75cdd3> :hudson.model.Hudson,"/queue/item/21/cancelQueue")
      -> evaluate(((StaplerProxy)<hudson.model.Hudson@75cdd3>).getTarget(),"/queue/item/21/cancelQueue")
      -> evaluate(<hudson.model.Hudson@75cdd3>.getQueue(),"/item/21/cancelQueue")
      -> evaluate(<hudson.model.Queue@1f1f1f2> :hudson.model.Queue,"/item/21/cancelQueue")
      -> evaluate(<hudson.model.Queue@1f1f1f2>.getItem(21),"/cancelQueue")
      -> unexpected null!
      If this 404 is unexpected, double check the last part of the trace to see if it should have evaluated to null.
      

      Presumably item #21 had already been sent to an executor, but the AJAX code to refresh the queue & executor list had not yet gotten a chance to run. Fine, but Jenkins should recover more gracefully than this - just redirect to the calling page and ignore the request.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            changelog.html
            core/src/main/java/hudson/model/Queue.java
            core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly
            core/src/main/resources/lib/hudson/queue.jelly
            http://jenkins-ci.org/commit/jenkins/43f1f5d100ba8dd730e5be02d182c6e9551ee9c8
            Log:
            [FIXED JENKINS-14813] 404 canceling queue items.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/model/Queue.java core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly core/src/main/resources/lib/hudson/queue.jelly http://jenkins-ci.org/commit/jenkins/43f1f5d100ba8dd730e5be02d182c6e9551ee9c8 Log: [FIXED JENKINS-14813] 404 canceling queue items.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #1856
            [FIXED JENKINS-14813] 404 canceling queue items. (Revision 43f1f5d100ba8dd730e5be02d182c6e9551ee9c8)

            Result = UNSTABLE
            Jesse Glick : 43f1f5d100ba8dd730e5be02d182c6e9551ee9c8
            Files :

            • core/src/main/resources/lib/hudson/queue.jelly
            • core/src/main/java/hudson/model/Queue.java
            • changelog.html
            • core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1856 [FIXED JENKINS-14813] 404 canceling queue items. (Revision 43f1f5d100ba8dd730e5be02d182c6e9551ee9c8) Result = UNSTABLE Jesse Glick : 43f1f5d100ba8dd730e5be02d182c6e9551ee9c8 Files : core/src/main/resources/lib/hudson/queue.jelly core/src/main/java/hudson/model/Queue.java changelog.html core/src/main/resources/hudson/widgets/BuildHistoryWidget/entries.jelly

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              jglick Jesse Glick
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: