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

Plugin update fails with NPE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: None
    • Labels:
      None
    • Similar Issues:

      Description

      When updating a plugin in Hudson 1.341 I get a NPE:

      java.lang.NullPointerException
      at hudson.security.ContainerAuthentication.getPrincipal(ContainerAuthentication.java:79)
      at hudson.security.ContainerAuthentication.getName(ContainerAuthentication.java:91)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:691)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:651)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:676)
      at java.lang.Thread.run(Thread.java:595)

      I'm logged in as admin user.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : kohsuke
            Path:
            trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java
            trunk/hudson/main/core/src/main/java/hudson/security/BasicAuthenticationFilter.java
            trunk/hudson/main/core/src/main/java/hudson/security/ContainerAuthentication.java
            trunk/www/changelog.html
            http://jenkins-ci.org/commit/26442
            Log:
            [FIXED JENKINS-5382] in 1.343. NPE in the update center job if the container authentication is used, because ServletRequest is no longer valid from another thread after the request handling is completed.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/model/Hudson.java trunk/hudson/main/core/src/main/java/hudson/security/BasicAuthenticationFilter.java trunk/hudson/main/core/src/main/java/hudson/security/ContainerAuthentication.java trunk/www/changelog.html http://jenkins-ci.org/commit/26442 Log: [FIXED JENKINS-5382] in 1.343. NPE in the update center job if the container authentication is used, because ServletRequest is no longer valid from another thread after the request handling is completed.

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              zlosch zlosch
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: