Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-2804

NPE during password authentication

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 6.0
    • Fix Version/s: 6.0
    • Component/s: None
    • Labels:
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Not Required

      Description

      After migrating a 3.x database to the master branch (6.0), I'm unable to login using password authentication with an existing account (administrator). I get the following stacktrace both in XMLUI and JSPUI. A newly created account can log in just fine.

      java.lang.NullPointerException
      at org.dspace.content.DSpaceObjectServiceImpl.match(DSpaceObjectServiceImpl.java:419)
      at org.dspace.content.DSpaceObjectServiceImpl.getMetadata(DSpaceObjectServiceImpl.java:125)
      at org.dspace.content.DSpaceObjectServiceImpl.getMetadataFirstValue(DSpaceObjectServiceImpl.java:358)
      at org.dspace.eperson.EPerson.getFirstName(EPerson.java:241)
      at org.dspace.eperson.EPerson.getFullName(EPerson.java:217)
      at org.dspace.eperson.EPerson.equals(EPerson.java:122)
      at org.dspace.eperson.GroupServiceImpl.allMemberGroups(GroupServiceImpl.java:177)
      at org.dspace.eperson.GroupServiceImpl.epersonInGroup(GroupServiceImpl.java:411)
      at org.dspace.eperson.GroupServiceImpl.isMember(GroupServiceImpl.java:159)
      at org.dspace.authorize.AuthorizeServiceImpl.isAdmin(AuthorizeServiceImpl.java:420)
      at org.dspace.app.webui.util.Authenticate.loggedIn(Authenticate.java:310)
      at org.dspace.app.webui.servlet.PasswordServlet.doDSPost(PasswordServlet.java:79)
      at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:125)
      at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:83)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.dspace.utils.servlet.DSpaceWebappServletFilter.doFilter(DSpaceWebappServletFilter.java:78)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              helix84 Ivan Masár
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: