The SWORD 2.0 interface on demo.dspace.org is broken

22 views
Skip to first unread message

Antonin Delpeuch (lists)

unread,
Apr 4, 2017, 5:27:36 PM4/4/17
to dspac...@googlegroups.com
Dear DSpace developers,

It seems that the SWORD 2.0 interface of demo.dspace.org is broken.

According to the SWORD protocol, the following curl command should be
sufficient to create a (very simple) deposition on the instance:

curl -u dspacede...@gmail.com:dspace
http://demo.dspace.org/swordv2/collection/10673/2 -X POST -d
@article.pdf -H "Content-Disposition: attachment; filename=article.pdf"

(where article.pdf is some PDF file in the current working directory).

This command triggers an HTTP 500 error:

java.lang.NoSuchMethodError:
com.hp.hpl.jena.rdf.model.impl.RDFWriterFImpl.setBaseWriterClassName(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

This is a relatively simple bug to spot - I wonder whether it would make
sense to run a few unit tests like this one against the demo instance.
Travis is free for open source projects and now allows builds to be run
periodically.

Best regards,

Antonin Delpeuch

helix84

unread,
Apr 6, 2017, 4:10:05 AM4/6/17
to Antonin Delpeuch (lists), DSpace Technical Support
Thanks for the report. I filed a bug here:

Regarding automated tests, we do have unit tests that we run on Travis. We recently added integration tests as a category, but there are still very few of them. We do not have any tests running against demo.dspace.org. If you wanted to add any, we would highly appreciate that.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Antonin Delpeuch (lists)

unread,
Apr 6, 2017, 8:43:37 AM4/6/17
to hel...@centrum.sk, DSpace Technical Support
Thanks for the ticket!

Yes I can help with the Travis tests, I'll try to remember to do PR with
a few tests once the issue is resolved.

Antonin

On 06/04/2017 09:09, helix84 wrote:
> Thanks for the report. I filed a bug here:
> https://jira.duraspace.org/browse/DS-3557
>
> Regarding automated tests, we do have unit tests that we run on Travis.
> We recently added integration tests as a category, but there are still
> very few of them. We do not have any tests running against
> demo.dspace.org <http://demo.dspace.org>. If you wanted to add any, we
Reply all
Reply to author
Forward
0 new messages