Skip to content
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

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

Open
pdurbin opened this issue Jan 16, 2025 · 1 comment
Labels
Type: Bug a defect

Comments

@pdurbin
Copy link
Member

pdurbin commented Jan 16, 2025

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="[email protected]")
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect
Projects
None yet
Development

No branches or pull requests

2 participants