Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-60717

UserUtil.userExists(String) throws NullPointerException

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Cloud. Using JIRA Server? 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

          Activity

            People

              Unassigned Unassigned
              c3b7e58178e6 Josh Wheeler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: