Accessing site-level 'mets.xml' in XMLUI doesn't work properly for handle
prefixes with periods (e.g. 2010.1)
-------------------------------------------------------------------------------------------------------------
Key: DS-471
URL: http://jira.dspace.org/jira/browse/DS-471
Project: DSpace 1.x
Issue Type: Bug
Components: XMLUI
Affects Versions: 1.5.2, 1.6.0
Reporter: Tim Donohue
Priority: Minor
This issue was reported by Paulo Jobim on the 'dspace-devel' listserv. I've
verified that this issue also occurs on the latest trunk code (pre-1.6.0).
To recreate this problem, change your 'handle.prefix' in dspace.cfg to include
a period (e.g. "123456789.1"), restart Tomcat, and then visit the following URL
in the XMLUI: (remember to change "123456789.1" to your handle prefix)
/metadata/internal/repository/123456789.1/mets.xml
Without the period in the handle prefix, the above URL would correctly return
the site-wide metadata in a METS package. But, if you have a period in the
handle prefix, you instead receive the following error:
java.lang.NumberFormatException: For input string: "123456789.1"
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.valueOf(Integer.java:554)
at
org.dspace.app.xmlui.cocoon.DSpaceMETSGenerator.resolveAdapter(DSpaceMETSGenerator.java:187)
at
org.dspace.app.xmlui.cocoon.DSpaceMETSGenerator.generate(DSpaceMETSGenerator.java:124)
...
--
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
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel