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

Upload page fails when dc.title.alternative is enabled in config/spring/api/sherpa.xml and Sherpa/Romeo comes across a journal title it doesn't know

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      3
    • Documentation Status:
      Not Required

      Description

      The upload page during submission fails when dc.title.alternative is enabled in config/spring/api/sherpa.xml and Sherpa/Romeo comes across a journal title it doesn't know (e.g. "Journal ABC").

      This doesn't happen in the demo repository, I presume because Sherpa/Romeo is enabled with the default configuration of /config/ spring/api/sherpa.xml (it uses dc.identifier.issn, not dc.title.alternative). The error above only occurs when Sherpa/Romeo takes its information from dc.title.alternative. An unknown ISSN in dc.identifier.issn doesn't cause any problems.

      Repositories which use dc.title.alternative for Sherpa/Romeo (alternatively or additionally to dc.identifier.issn) will probably experience that the upload step fails when Sherpa/Romeo doesn't know the journal title.

      Error on the upload page:
      Java stacktrace: java.lang.NullPointerException at org.dspace.app.sherpa.submit.SHERPASubmitService.getISSNs(SHERPASubmitService.java:75) at org.dspace.app.sherpa.submit.SHERPASubmitService.hasISSNs(SHERPASubmitService.java:84) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.make_sherpaRomeo_submission(UploadStep.java:383) at org.dspace.app.xmlui.aspect.submission.submit.UploadStep.addBody(UploadStep.java:254) at org.dspace.app.xmlui.aspect.submission.StepTransformer.addBody(StepTransformer.java:145) at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:223) at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/app/sherpa/submit/SHERPASubmitService.java#L75

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                FA F. Rapp
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: