mocleiri/github-oauth-plugin — Issue #18: Breaks Jenkins API basic auth
Author: rossta
Created: 2012-03-07 23:10:36+00:00
State: open

Before installing the plugin, we were using basic auth with the Jenkins API. After installing the github oauth plugin and updating usernames and tokens as needed, our API requests generate 500 errors (see below). Is this a bug or should we use a different auth strategy for our API requests?

---

GET /api/json (with basic auth headers)

Error 500

Status Code: 500

Exception:
Stacktrace:

java.lang.NullPointerException\n\tat org.jenkinsci.plugins.GithubSecurityRealm.loadGroupByGroupname(GithubSecurityRealm.java:452)\n\tat org.jenkinsci.plugins.GithubSecurityRealm.loadUserByUsername(GithubSecurityRealm.java:421)\n\tat hudson.model.User.impersonate(User.java:251)\n\tat jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:50)\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\tat org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)\n\tat hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)\n\tat hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)\n\tat hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)\n\tat hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)\n\tat winstone.FilterConfiguration.execute(FilterConfiguration.java:194)\n\tat winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)\n\tat hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)\n\tat winstone.FilterConfiguration.execute(FilterConfiguration.java:194)\n\tat winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)\n\tat winstone.RequestDispatcher.forward(RequestDispatcher.java:331)\n\tat winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:245)\n\tat winstone.RequestHandlerThread.run(RequestHandlerThread.java:148)\n\tat java.lang.Thread.run(Thread.java:679)\n

Generated by Winstone Servlet Engine v0.9.10 at Wed Mar 07 18:04:00 EST 2012