Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Troubleshooting section

...

Code Block
# Example of retrieving Item information via "edit-media" path in ATOM format (can be run on any item within DSpace, but requires authentication)
# NOTE: Accept header is required, and must be a format supported by a SwordContentDisseminator plugin (see configuration above)
curl -i -H "Accept:application/atom+xml" -u test@dspace.org:[password] -X GET http://[dspace.url]/swordv2/edit-media/[internal-item-identifier]

Troubleshooting

HTTP 500 errors - Missing expression of encoding in XML header

If your SWORD Deposit requests are producing HTTP 500, please check that the XML in your initial metadata deposit correctly specifies the encoding.

If you use: 

Code Block
<?xml version="1.0"?>

DSpace will default to UTF-32.

So to successfully deposit an XML in UTF-8, make sure you use:

Code Block
<?xml version="1.0" encoding="utf-8" ?>