[ 
http://jira.dspace.org/jira/browse/DS-471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kim Shepherd updated DS-471:
----------------------------

    Attachment: DS-471.patch

Updated patch, slightly tidier approach

> 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
>            Assignee: Kim Shepherd
>            Priority: Minor
>             Fix For: 1.6.1
>
>         Attachments: DS-471.patch, DSpaceMETSGeneratorPatch.txt
>
>
> 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

        

------------------------------------------------------------------------------

_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to