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

DSpace REST API - create new item - 500 internal server error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Code Review Needed (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.7, 5.8, 5.9, 5.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Needed

      Description

      When trying to create a new item through the REST API, a "500 internal server error" status is returned. This only happens the first time after logging in.

       

      Steps to reproduce:

       

      curl -X POST \
      [DSpace REST endpoint]/login \
      -H 'Content-Type: application/json' \
      -d '{"email":"[email]", "password": "[password]"}'

       

      curl -X POST \
      [DSpace REST endpoint]/collections/[collection ID]/items \
      -H 'Content-Type: application/json' \
      -H 'rest-dspace-token: [token from previous call]' \
      -d '{}'

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            samuelcambien Samuel Cambien (Atmire)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: