![]() |
|
|
Issue Type:
|
Code Task
|
Affects Versions:
|
1.8.3, 1.7.3, 3.2 |
Assignee:
|
Unassigned |
Components:
|
DSpace API |
Created:
|
20/Sep/13 4:24 PM
|
Description:
|
See: https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/content/packager/RoleDisseminator.java#L441
The writeEPerson method assumes that the contents of EMAIL is not Null, which leads to an NPE if you attempt to run an AIP export for an entire site, if you have any ePerson records with Null e-mail addresses. And you *do* have such records, if your administrators are anything like mine. It's very easy to make such null records, just log in as an administrator and attempt to create a new ePerson. Now, walk away without filling out the form. Or, for some other reason (interruption, Tomcat burps) don't complete the process. Now you have a null record in your ePerson table. If you're running anything based on the current DSpace master branch, you can use Mark Wood's very nice script to list users, and find all your Null records:
dspace/bin/dspace user --list | grep null
Prepare to be amazed. OK, but that's besides the point, the writeEPerson method in RoleDisseminator really shouldn't assume anything about the contents of the e-mail field before it attempts to write it out.
Related to DS-1569
|
Project:
|
DSpace
|
Priority:
|
Minor
|
Reporter:
|
Hardy Pottinger
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel