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

authentication fails after upgrade from 3.x to master (6.0) schema

    XMLWordPrintable

    Details

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

      Description

      After schema migration, trying to log in results in a stacktrace. The reason is that all eperson metadata have NULL values in metadatavalue.metadata_field_id. Newly registered epersons will have metadata_field_id correctly filled in.

      This must be because DB migration occurs before registries are loaded, so there's no eperson schema (which didn't exist before 5.x) loaded at the time of DB migration.

      XMLUI:
      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.xmlui.utils.AuthenticationUtil.logIn(AuthenticationUtil.java:198)
      at org.dspace.app.xmlui.utils.AuthenticationUtil.authenticate(AuthenticationUtil.java:129)
      at org.dspace.app.xmlui.aspect.eperson.AuthenticateAction.act(AuthenticateAction.java:77)
      at org.apache.cocoon.sitemap.impl.DefaultExecutor.invokeAction(DefaultExecutor.java:55)

      JSPUI:
      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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kevin van de velde Kevin Van de Velde (Atmire)
                Reporter:
                helix84 Ivan Masár
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: