-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
-
iapetus
Attempting to load: https://ci.blueocean.io/blue/organizations/jenkins/blueocean/activity when logged in:
Results in the following:
https://gist.github.com/michaelneale/6c26c9dd8597a1c9a69abb39db92e5ea
The /activity screen is also a bit slow to load as well.
Caused by: java.lang.NullPointerException
at org.jenkinsci.plugins.GithubAuthenticationToken.getGrantedAuthorities(GithubAuthenticationToken.java:388)
at org.jenkinsci.plugins.GithubOAuthUserDetails.getAuthorities(GithubOAuthUserDetails.java:45)
at hudson.model.User.impersonate(User.java:317)
at io.jenkins.blueocean.service.embedded.rest.UserImpl.getPermission(UserImpl.java:100)
at io.jenkins.blueocean.commons.stapler.export.MethodProperty.getValue(MethodProperty.java:72)
Only when logged in.
where the NPE happens:
https://github.com/jenkinsci/blueocean-plugin/blob/master/blueocean-rest-impl/src/main/java/io/jenkins/blueocean/service/embedded/rest/UserImpl.java#L100
Which is odd, not sure why ti has to impersonate, I am logged in as me... In any case - it only started with this PR: https://github.com/jenkinsci/blueocean-plugin/pull/808/files
In github oauth plugin:
https://github.com/jenkinsci/github-oauth-plugin/blob/master/src/main/java/org/jenkinsci/plugins/GithubAuthenticationToken.java#L388
(do not know what is null... but it seems new).
I wondered if this may be a variant of the https://issues.jenkins-ci.org/browse/JENKINS-40088 WSOD - but I don't think so:
at io.jenkins.blueocean.commons.stapler.export.Property.safeGetValue(Property.java:152) at io.jenkins.blueocean.commons.stapler.export.Property.writeTo(Property.java:127) at io.jenkins.blueocean.commons.stapler.export.Model.writeNestedObjectTo(Model.java:228) at io.jenkins.blueocean.commons.stapler.export.Model.writeNestedObjectTo(Model.java:224) at io.jenkins.blueocean.commons.stapler.export.Property.writeValue(Property.java:280) at io.jenkins.blueocean.commons.stapler.export.Property.writeValue(Property.java:169)