Open pdurbin opened 10 years ago
A related bug is that we get org.apache.abdera.parser.ParseException
when trying to create a SWORD entry with some XML that contains an invisible character:
However, I was able to catch org.apache.abdera.parser.ParseException
in my code
https://github.com/IQSS/dataverse/commit/f181c0d7bc447b9fbe43f161fb25e01336deba36
If atom-entry-empty.xml is an empty file (i.e.
touch atom-entry-empty.xml
to create it) and I try to feed it into CollectionAPI.post like this...curl -s --insecure --data-binary @scripts/api/data-deposit/data/atom-entry-empty.xml -H 'Content-Type: application/atom+xml' https://pete:pete@localhost:8181/dvn/api/data-deposit/v1/swordv2/collection/dataverse/peteTop
... I get the exception below. Perhaps a try/catch could be added?
Here's the relevant line: https://github.com/swordapp/JavaServer2.0/blob/sword2-server-1.0/src/main/java/org/swordapp/server/SwordAPIEndpoint.java#L355
The Java SWORD library is upstream of me but here's where I'm tracking this issue: https://github.com/IQSS/dataverse/issues/893