Skip to content

Via API, datasets can be created in an invalid state when it comes to license/terms #11161

@pdurbin

Description

@pdurbin

What steps does it take to reproduce the issue?

Follow docs to create a dataset...

curl -H X-Dataverse-key:3e2b87bf-6652-47f1-b0bb-ddc0aa1a9106 -X POST http://localhost:8080/api/dataverses/root/datasets -H Content-type:application/json --upload-file dataset.json

... using this file: dataset.json

I created this JSON file with the following EasyDataverse code:

dataset.citation.title = "My Dataset"
dataset.citation.subject = ["Other"]
dataset.citation.add_author(name="Durbin, Philip")
dataset.citation.add_dataset_contact(name="Durbin, Philip", email="philip_durbin@harvard.edu")
dataset.citation.add_ds_description(value="My description.")

What happens?

The dataset is created in an invalid state when it comes to license/terms. See the screenshot below. It is set to "Custom Dataset Terms" but "Terms of Use" is empty.

What did you expect to happen?

The dataset should be assigned the default license, which is CC0 out of the box.

Which version of Dataverse are you using?

The latest in the develop branch: d70de2c

Any related open or closed issues to this bug report?

Screenshots

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Original size: 10Type: Buga defectUX & UI: DesignThis issue needs input on the design of the UI and from the product ownerUX/UI Input NeededApply to issues involving UX or UI implications that need additional input

    Type

    No type

    Projects

    Status

    SPRINT READY

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions