Hi Helix84,
        The 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);
    }

        Calls the require method of the org.dspace.app.xmlui.wing.element. 
AbstractWingElement

        protected void require(String parameter, String message)
            throws WingInvalidArgument
    {
        if (parameter == null || parameter.equals(""))
        {
            throw new WingInvalidArgument(message);
        }
    }

        And this fails on null or the empty string.

        I cannot use a placeholder for the email address as this would have to 
be unique so as not to violate the constraint on the eperson.email column.
        If I cannot use some other placeholder value I will have to generate 
unique dummy emails and go with that.

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]
------------------------------------------------------------------


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of helix84
Sent: 05 September 2012 12:38
To: Benjamin Ryan
Cc: [email protected]
Subject: Re: [Dspace-tech] Shibboleth authentication

Hi Ben,

just quick note - the Wing code is just for displaying the page in XMLUI. It 
probably displays the email address somewhere in a list (probably <ul>) and 
fails on empty elements. I didn't look at the code yet.

Regards,
~~helix84
------------------------------------------------------------------------------
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

Reply via email to