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

Authority Linked Entities (/entries) endpoint does not appear to work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Volunteer Needed (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: REST API v7
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      1
    • Documentation Status:
      Needed

      Description

      REST Contract for this endpoint: https://github.com/DSpace/Rest7Contract/blob/master/authorities.md#authority-entries

      Testing this endpoint against either the demo site (or a local version of DSpace v7 REST API) always results in a 500 Internal Server Error exception. 

      For example, according to the REST Contract, this should be a valid usage of the /entries sub-endpoint:
      https://dspace7.4science.cloud/server/#https://dspace7.4science.cloud/server/api/integration/authorities/common_types/entries?metadata=dc.type&query=Book&size=2

      The result is a long 500 Internal Server Error with the message "An Exception has occured".  The "caused by" notes: 

      Caused by: java.lang.NullPointerException at org.dspace.app.rest.converter.AuthorityEntryRestConverter.fromModel(AuthorityEntryRestConverter.java:30)

      That "AuthorityEntryRestConverter" itself has JavaDocs that say: "TODO please do not use this convert but use the wrapper {@link AuthorityUtils#convertEntry(Choice, String)}}"

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tdonohue Tim Donohue
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: