Skip to content

ISSUE-37: Remove sword #1

Merged
rs-fraser merged 12 commits intomainfrom
ISSUE-37-remove-sword
Mar 12, 2026
Merged

ISSUE-37: Remove sword #1
rs-fraser merged 12 commits intomainfrom
ISSUE-37-remove-sword

Conversation

@rs-fraser
Copy link
Copy Markdown

@rs-fraser rs-fraser commented Mar 11, 2026

Addresses: IQSS#37

Related rspace-dataverse-adapter PR: rspace-os/rspace-dataverse-adapter#11

Description

This PR removes the option to upload files via SWORD protocol. This protocol might be deprecated by Dataverse soon, and is a pre-requisite of the Spring 6/ jakarta upgrade in parent projects.

Adds the commons-io library which must've been included transitively by one of the removed libraries. And uses commons-lang3 in a few places that were using commons-lang

For now, this change will be merged into the rspace-os fork of dataverse-client-java, then we will merge it upstream.

Comment thread build.gradle
@rs-fraser rs-fraser merged commit c7f2556 into main Mar 12, 2026
@rs-fraser rs-fraser deleted the ISSUE-37-remove-sword branch March 12, 2026 11:32
rs-fraser added a commit to rspace-os/rspace-web that referenced this pull request Mar 17, 2026
https://researchspace.atlassian.net/browse/RSDEV-1049

## Description ##
`dataverse-client-java` has been updated to remove the SWORD protocol.
(PR: rspace-os/dataverse-client-java#1)

`rspace-dataverse-adapater` has been updated to use "native"
(REST-based) upload, and the latest version of `dataverse-client-java`
(PR: rspace-os/rspace-dataverse-adapter#11)

This PR use the new version of `rspace-dataverse-adapter`.

## Testing
I manually tested each of the different types of export (HTML zip, XML
zip, PDF and RO-CRATE) to Dataverse before and after this change, and
everything is uploaded as expected, and files have the same metadata.

I noticed that the PDF file wasn't uploaded in the previous version, but
is uploaded now. Looks like this change may have fixed
https://researchspace.atlassian.net/browse/RSDEV-957

**PDF before (file missing)**:
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/MJDQ3Q&version=DRAFT
<img width="1204" height="884" alt="Screenshot 2026-03-11 at 14 04 13"
src="https://github.com/user-attachments/assets/eea490fe-5b0f-477e-83db-a7ff37aeaae4"
/>




**PDF after (file uploaded)**:
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/HJB7O2&version=DRAFT
<img width="1210" height="957" alt="Screenshot 2026-03-11 at 14 03 45"
src="https://github.com/user-attachments/assets/4a430e10-1c6d-407b-9e47-188fd11fcfd0"
/>

---------

Co-authored-by: matthias <matthias@researchspace.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants