Error Check Needed for handle.prefix in Dspace.cfg
--------------------------------------------------
Key: DS-636
URL: http://jira.dspace.org/jira/browse/DS-636
Project: DSpace 1.x
Issue Type: Bug
Components: DSpace API
Affects Versions: 1.6.0
Reporter: Tim Donohue
Priority: Minor
This was reported to the old SourceForge Bug Tracker (now closed down), by
Jason (zenthanian):
v1.60
/dspace-api/src/main/java/org/dspace/handle/HandleManager.java
needs to handle missing "hande.prefix" in dspace.cfg
if not there the following line results in a null value
String handlePrefix = ConfigurationManager.getProperty("handle.prefix");
then the following line bombs with a nullpointer exception.
return new StringBuffer().append(handlePrefix).append(
handlePrefix.endsWith("/") ? "" : "/").append(id).toString();
suggest to insert the following between the two lines
if (handlePrefix == null)
{
log.warning("handle.prefix not set in config file.")
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.dspace.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel