• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None

      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.

          [JENKINS-5382] Plugin update fails with NPE

          zlosch created issue -

          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.

          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.
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Alan Harder made changes -
          Link New: This issue is duplicated by JENKINS-5319 [ JENKINS-5319 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 135471 ] New: JNJira + In-Review [ 203503 ]

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

              Created:
              Updated:
              Resolved: