Bug 349374 - [server][user] NPE in FormAuthHelper
Summary: [server][user] NPE in FormAuthHelper
Status: RESOLVED FIXED
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Server (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.3   Edit
Assignee: Malgorzata Janczarska CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2011-06-14 16:49 EDT by John Arthorne CLA
Modified: 2011-09-29 05:34 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-06-14 16:49:33 EDT
HEAD as of 20110614

I am seeing several NPE's in my log like the following. I'm not sure what caused it or what effect it might have:

java.lang.NullPointerException: null
	at org.eclipse.orion.server.authentication.form.core.FormAuthHelper.canAddUsers(FormAuthHelper.java:162) ~[na:na]
	at org.eclipse.orion.server.authentication.formopenid.servlets.LoginFormServlet.replaceNewAccount(LoginFormServlet.java:341) ~[na:na]
	at org.eclipse.orion.server.authentication.formopenid.servlets.LoginFormServlet.loadJSResponse(LoginFormServlet.java:205) ~[na:na]
	at org.eclipse.orion.server.authentication.formopenid.servlets.LoginFormServlet.writeJavaScriptResponse(LoginFormServlet.java:176) ~[na:na]
	at org.eclipse.orion.server.authentication.formopenid.servlets.LoginFormServlet.service(LoginFormServlet.java:158) ~[na:na]
Comment 1 Malgorzata Janczarska CLA 2011-09-29 05:34:33 EDT
User admin is added to FormAuthHelper as a service. Probably in this case login dialog was loaded before UserAdmin was bound. But when we switched from multiple UserAdmins to a single UserAdmin I added a dependency between those bundles, so I suppose user admin would be bind as soon as bundle with FormAuthHelper is loaded. Just in case to avoid NPE I added checking. If we don't have reference to user admin we don't allow to create users. But this is only theoretical, should never happen.