Hi,
I have modified the Shib auth class to check whether a valid (syntactilly to RFC822) has been supplied in the headers :
if (validate_email_address(email)) {
eperson.setEmail(email);
} else {
eperson.setEmail("");
}
If not I set the email address to the empty string (I will prompt the user later on to go to their profile and add email address etc).
However, this causes an exception:
org.dspace.app.xmlui.wing.WingInvalidArgument: The 'characters' parameter is required for list items.
at org.dspace.app.xmlui.wing.element.AbstractWingElement.require(AbstractWingElement.java:117)
at org.dspace.app.xmlui.wing.element.List.addItem(List.java:290)
at org.dspace.app.xmlui.aspect.eperson.EditProfile.addBody(EditProfile.java:292)
This is caused (I think) by the following code in org.dspace.app.xmlui.wing.element.List
public void addItem(String characters) throws WingException
{
require(characters,
"The 'characters' parameter is required for list items.");
Item item = this.addItem(null, null);
item.addContent(characters);
}
Is there a way round this is I know I will not get a valid e-mail address from many IDPs?
Regards,
Ben
------------------------------------------------------------------
Dr Ben Ryan
Jorum Technical Coordinator (Services)
5.12 Roscoe Building
The University of Manchester
Oxford Road
Manchester
M13 9PL
Tel: 0160 275 6039
E-mail: benjam...@manchester.ac.uk
------------------------------------------------------------------