Details
-
Bug
-
Resolution: Timed out
-
Medium
-
None
-
None
-
Severity 2 - Major
-
-
Description
NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.
UserUtil.userExists(String userName)
(JavaDoc) is supposed to return a boolean. Searching through the source code, there's an issue with
UserUtilImpl.userExists(final String userName)
userExists is calling
crowdService.getUser(userName)
I wasn't able to find that class from the Jira Software 7.1.2 source, but I'd imagine that a user-not-found instance is not being caught.
2016-04-18 13:40:38,536 http-nio-8080-exec-12 ERROR [o.a.c.c.C.[.[localhost].[/jira].[default]] Servlet.service() for servlet [default] in context with path [/jira] threw exception java.lang.NullPointerException at com.example.jira.WamAuthenticator.getUser(WamAuthenticator.java:138) at com.atlassian.seraph.filter.SecurityFilter.doFilter(SecurityFilter.java:139) at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:70) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) ... 13 filtered at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37) ... 3 filtered at com.atlassian.jira.rest.auth.JiraRestSeraphAuthFilter.doFilter(JiraRestSeraphAuthFilter.java:41) ... 74 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745)
Attachments
Issue Links
- relates to
-
JRACLOUD-60717 UserUtil.userExists(String) throws NullPointerException
- Closed