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:
[email protected]<https://outlook.manchester.ac.uk/owa/redir.aspx?C=b28b5bdd1a91425abf8e32748c93f487&URL=mailto%3abenjamin.ryan%40manchester.ac.uk>
------------------------------------------------------------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech