Swordv2 deposit doesn't work if the package is recompressed. I've attached the package which gets deposited as it is but if I extract the package and recompress it (without changing anything), it throws this error: (on local server)
If I try doing same in demo.dspace.org I get following two issues.
- The package gets deposited for the first time but after second attempt it throws HTTP/1.1 500 Internal Server Error But the package still gets deposited.(Despite throwing failure message) This is the complete error message
- If I try to deposit the recompressed package I still get the same HTTP/1.1 500 Internal Server but this time the package doesn't get deposited.
My curl command is:
curl -i http://demo.dspace.org/swordv2/collection/10673/2 --data-binary "@example.zip" -H "Content-Disposition: filename=example.zip" -H "Content-Type: application/zip" -H "Packaging: http://purl.org/net/sword/package/METSDSpaceSIP" --user "firstname.lastname@example.org"
The original package gets deposited and throws this success message as expected.