-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sword API: Can't create study when hidden characters are introduced in atom.xml #894
Comments
In 326f120 I committed a test file to reproduce the bug but things are a little better because we now catch the |
As of f181c0d we are doing more sanity checks on both creating datasets via SWORD and editing the metadata. Here's and example of testing the creation of a dataset.
The expected error message for replacing metadata with a bad XML file (hidden characters, etc.) is "Can not replace dataset metadata due to malformed Atom entry". Passing to QA. |
Getting the correct error msg: "Illegal character ((CTRL-CHAR, code 19)) <sword:error href="http://purl.org/net/sword/error/ErrorBadRequest" xmlns:sword="http://purl.org/net/sword/terms/"><atom:title xmlns:atom="http://www.w3.org/2005/Atom">ERROR/atom:title<atom:updated xmlns:atom="http://www.w3.org/2005/Atom">2014-10-24T14:31:02Z/atom:updated<atom:generator uri="http://www.swordapp.org/" version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"/>sword:treatmentProcessing failed/sword:treatment<atom:summary xmlns:atom="http://www.w3.org/2005/Atom">Can not create dataset due to malformed Atom entry: org.apache.abdera.parser.ParseException: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Illegal character ((CTRL-CHAR, code 19)) |
Author Name: Elda Sotiri (@esotiri)
Original Redmine Issue: 3313, https://redmine.hmdc.harvard.edu/issues/3313
Original Date: 2013-09-18
Original Assignee: Philip Durbin
This was tested on dvn-build 3.6 #111
I am attaching the atom file that on line 16 has a hidden character, and it fails creating a study. I can see the char with emacs or xcode.
dcterms:publisherhere is the hidden char /dcterms:publisher
The text was updated successfully, but these errors were encountered: