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

Viewing canceled Pipeline jobs can get NPE from UserInterruption/summary.groovy

    XMLWordPrintable

Details

    Description

      Sometimes when viewing cancelled pipeline jobs, an exception is shown. I'm not sure if it's all cancelled jobs or just particular ones. Can still view console logs by entering url in manually.

      javax.servlet.ServletException: org.apache.commons.jelly.JellyTagException: jar:file:/home/jenkins/plugins/workflow-job/WEB-INF/lib/workflow-job.jar!/org/jenkinsci/plugins/workflow/job/WorkflowRun/index.jelly:63:93: <st:include> org.apache.commons.jelly.JellyTagException: jar:file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.24.jar!/lib/hudson/summary.jelly:105:31: <d:invokeBody> Cannot get property 'fullName' on null object
      

      Attachments

        Issue Links

          Activity

            oleg_nenashev Oleg Nenashev added a comment -

            jglick FYI we have automatic referencing of PRs now (see the "Development" section on the right sidepanel)

            oleg_nenashev Oleg Nenashev added a comment - jglick FYI we have automatic referencing of PRs now (see the "Development" section on the right sidepanel)

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/jenkins/model/CauseOfInterruption.java
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.groovy
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_ja.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_pl.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_sr.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_zh_TW.properties
            http://jenkins-ci.org/commit/jenkins/91ad59214234e7724d586f64f8fb6db35104857b
            Log:
            [FIXED JENKINS-38721, JENKINS-37282] - NPE in "CauseOfInterruption.UserInterruption" when user is missing (#2630)

            • [FIXED JENKINS-38721] - Prevent NPE during rendering of "CauseOfInterruption.UserInterruption" when user is missing

            It is a regression introduced in JENKINS-36594

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/jenkins/model/CauseOfInterruption.java core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.groovy core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_ja.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_pl.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_sr.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_zh_TW.properties http://jenkins-ci.org/commit/jenkins/91ad59214234e7724d586f64f8fb6db35104857b Log: [FIXED JENKINS-38721, JENKINS-37282] - NPE in "CauseOfInterruption.UserInterruption" when user is missing (#2630) [FIXED JENKINS-38721] - Prevent NPE during rendering of "CauseOfInterruption.UserInterruption" when user is missing It is a regression introduced in JENKINS-36594 JENKINS-38721 - Fix typo
            oleg_nenashev Oleg Nenashev added a comment - - edited

            The fix has been integrated towards jenkins-2.31. Marking as LTS candidate since it's a regression in 2.14, which likely deserves backporting into 2.19.3 (8 votes in total)

            oleg_nenashev Oleg Nenashev added a comment - - edited The fix has been integrated towards jenkins-2.31. Marking as LTS candidate since it's a regression in 2.14, which likely deserves backporting into 2.19.3 (8 votes in total)

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/jenkins/model/CauseOfInterruption.java
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.groovy
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_ja.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_pl.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_sr.properties
            core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_zh_TW.properties
            http://jenkins-ci.org/commit/jenkins/0399037f842d1c9c4fbbc970421fafa3ecdac7eb
            Log:
            [FIXED JENKINS-38721, JENKINS-37282] - NPE in "CauseOfInterruption.UserInterruption" when user is missing (#2630)

            • [FIXED JENKINS-38721] - Prevent NPE during rendering of "CauseOfInterruption.UserInterruption" when user is missing

            It is a regression introduced in JENKINS-36594

            (cherry picked from commit 91ad59214234e7724d586f64f8fb6db35104857b)

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/jenkins/model/CauseOfInterruption.java core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.groovy core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_ja.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_pl.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_sr.properties core/src/main/resources/jenkins/model/CauseOfInterruption/UserInterruption/summary_zh_TW.properties http://jenkins-ci.org/commit/jenkins/0399037f842d1c9c4fbbc970421fafa3ecdac7eb Log: [FIXED JENKINS-38721, JENKINS-37282] - NPE in "CauseOfInterruption.UserInterruption" when user is missing (#2630) [FIXED JENKINS-38721] - Prevent NPE during rendering of "CauseOfInterruption.UserInterruption" when user is missing It is a regression introduced in JENKINS-36594 JENKINS-38721 - Fix typo (cherry picked from commit 91ad59214234e7724d586f64f8fb6db35104857b)

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/test/java/org/jenkinsci/plugins/workflow/steps/CatchErrorStepTest.java
            http://jenkins-ci.org/commit/workflow-basic-steps-plugin/a1073f63461efa41b97d038191610c9dcbd60327
            Log:
            Adjust test to work against -Djenkins.version=2.19.4 after JENKINS-36594 & JENKINS-38721.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/test/java/org/jenkinsci/plugins/workflow/steps/CatchErrorStepTest.java http://jenkins-ci.org/commit/workflow-basic-steps-plugin/a1073f63461efa41b97d038191610c9dcbd60327 Log: Adjust test to work against -Djenkins.version=2.19.4 after JENKINS-36594 & JENKINS-38721 .

            People

              oleg_nenashev Oleg Nenashev
              sonneveldsmartward Nick Sonneveld
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: