You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feeding an empty Atom entry file to CollectionAPI.post results in org.apache.abdera.parser.ParseException: java.lang.ArrayIndexOutOfBoundsException #6
StandardWrapperValve[edu.harvard.iq.dataverse.api.datadeposit.SWORDv2CollectionServlet]: Servlet.service() for servlet edu.harvard.iq.dataverse.api.datadeposit.SWORDv2CollectionServlet threw exception
org.apache.abdera.parser.ParseException: java.lang.ArrayIndexOutOfBoundsException
at org.apache.abdera.parser.stax.FOMParser.parse(FOMParser.java:128)
at org.apache.abdera.util.AbstractParser.parse(AbstractParser.java:65)
at org.swordapp.server.SwordAPIEndpoint.addDepositPropertiesFromEntry(SwordAPIEndpoint.java:355)
at org.swordapp.server.CollectionAPI.post(CollectionAPI.java:156)
at edu.harvard.iq.dataverse.api.datadeposit.SWORDv2CollectionServlet.doPost(SWORDv2CollectionServlet.java:34)
The Java SWORD library is upstream of me but here's where I'm tracking this issue: IQSS/dataverse#893
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:
Activity
test to reproduce SWORD/Abdera ParseException bug #384
pdurbin commentedon Oct 20, 2014
A related bug is that we get
org.apache.abdera.parser.ParseExceptionwhen trying to create a SWORD entry with some XML that contains an invisible character:https://github.com/IQSS/dataverse/blob/master/scripts/api/data-deposit/data/atom-entry-study-894-invisible-character.xml
However, I was able to catch
org.apache.abdera.parser.ParseExceptionin my codeIQSS/dataverse@f181c0d
throw SwordError for unparseable Atom entry swordapp#6
fix(api): throw SwordError for unparseable Atom entry