Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-471

Accessing site-level 'mets.xml' in XMLUI doesn't work properly for handle prefixes with periods (e.g. 2010.1)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.2, 1.6.0
    • Fix Version/s: 1.6.1, 1.7.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      2
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      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)
      ...

        Attachments

        1. DS-471.patch
          3 kB
          Kim Shepherd
        2. DSpaceMETSGeneratorPatch.txt
          1 kB
          Tim Donohue

          Activity

            People

            Assignee:
            kshepherd Kim Shepherd
            Reporter:
            tdonohue Tim Donohue
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: