Thank you, Bram:

Those bugs are definitely what I am seeing.  Our local theme was originally 
built on the Mirage2_precompiled code base in DSpace 4.2 (later migrated to 
4.3).  When we went to 5.1, I did not migrate these changes to the newest 
Mirage 2, but kept them in our local theme.  Maybe that's what is causing these 
errors.


I will start with a clean compile of 5.1 with  Mirage 2 and see if we still see 
these errors, and, if not,  then start adding in our local changes. to the 
Mirage 2 theme in dspace/modules/xmlui-mirage2.

George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CULIT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924
________________________________
From: [email protected] <[email protected]> on behalf of Bram Luyten 
<[email protected]>
Sent: Wednesday, April 15, 2015 5:08 PM
To: George Stanley Kozak
Cc: [email protected]
Subject: Re: [Dspace-tech] Error when trying to login in DSpace 5.1

Hi George,

probably just a piece of the puzzle at this point, but your report made me 
think about:
https://jira.duraspace.org/browse/DS-2347
https://jira.duraspace.org/browse/DS-2164

These fixes made it into 5.0 so you're probably seeing something different.
But I would definitely look in the area of the new metadata 4 all code that 
comes with DSpace 5.

Hope that helps! Please report back if you found the cause.

best regards,

Bram

--
[logo]
        Bram Luyten
2888 Loker Avenue East, Suite 315, Carlsbad, CA. 92010
Esperantolaan 4, Heverlee 3001, Belgium
www.atmire.com<http://atmire.com/website/?q=services&utm_source=emailfooter&utm_medium=email&utm_campaign=braml>

On 15 April 2015 at 22:01, George Stanley Kozak 
<[email protected]<mailto:[email protected]>> wrote:
Hello:

I recently upgraded from DSpace 4.3 to DSpace 5.1 (XMLUI) using a theme based 
on Mirage2.
We just noticed a peculiar problem.  In our theme, we place the name of the 
user on the screen when they log in.
This worked fine in DSpace 4.3, but when I went to DSpace 5.1, I see the 
following errors when a person logs in:
2015-04-15 15:46:23,333 ERROR org.dspace.content.DSpaceObject @ Loading item - 
cannot find metadata field -1 for resourceType=7 and resourceId=5
2015-04-15 15:46:23,333 ERROR org.dspace.content.DSpaceObject @ Loading item - 
cannot find metadata field -1 for resourceType=7 and resourceId=5
2015-04-15 15:46:23,334 ERROR org.dspace.content.DSpaceObject @ Loading item - 
cannot find metadata field -1 for resourceType=7 and resourceId=5
2015-04-15 15:46:23,334 ERROR org.dspace.content.DSpaceObject @ Loading item - 
cannot find metadata field -1 for resourceType=7 and resourceId=5

And the user’s name does not appear on the screen.

Also, when a person tries to log in using Shibboleth (also worked in 4.3), we 
get “AUTHENTICATION FAILED” and I see the following in the logs:
2015-04-15 15:46:23,338 ERROR org.dspace.authenticate.ShibAuthentication @ 
Unable to successfully authenticate using shibboleth for user because of an 
exception.
java.sql.SQLException: Invalid metadata field: [eperson.firstname]
        at org.dspace.content.DSpaceObject.updateMetadata(DSpaceObject.java:122)
        at org.dspace.eperson.EPerson.update(EPerson.java:1056)
        at 
org.dspace.authenticate.ShibAuthentication.updateEPerson(ShibAuthentication.java:825)
        at 
org.dspace.authenticate.ShibAuthentication.authenticate(ShibAuthentication.java:221)
        at 
org.dspace.authenticate.AuthenticationManager.authenticateInternal(AuthenticationManager.java:162)
        at 
org.dspace.authenticate.AuthenticationManager.authenticate(AuthenticationManager.java:99)
        at 
org.dspace.app.xmlui.utils.AuthenticationUtil.authenticate(AuthenticationUtil.java:107)
        at 
org.dspace.app.xmlui.aspect.eperson.ShibbolethAction.act(ShibbolethAction.java:64)
        (---etc)

Has there been some change in the way the eperson data is handled between 4.3 
and 5.1?
George Kozak
Digital Library Specialist
Cornell University Library Information Technologies (CUL-IT)
218 Olin Library
Cornell University
Ithaca, NY 14853
607-255-8924



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
DSpace-tech mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to