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

Trying to create dataset in collection with certain default dataset templates returns error page #9825

Closed
jggautier opened this issue Aug 23, 2023 · 3 comments · Fixed by #9892
Labels
Type: Bug a defect
Milestone

Comments

@jggautier
Copy link
Contributor

jggautier commented Aug 23, 2023

What steps does it take to reproduce the issue?

  • When does this issue occur?
    On a collection that has a default template with certain metadata fields filled, click on Add Data, and New Dataset. For example, the collection at https://dataverse.harvard.edu/dataverse/worldfish has a default dataset template. When I try to create a dataset in that collection, the issue occurs. I've also done more testing on Demo Dataverse with collections and different dataset templates with the same results.

  • Which page(s) does it occurs on?
    Dataverse collection pages

  • What happens?
    I'm taken to an error page:

    Screenshot 2023-08-23 at 12 48 45 PM

  • To whom does it occur (all users, curators, superusers)?
    Users with permission to create datasets in the collection

  • What did you expect to happen?
    We're taken to the page where we can add metadata and upload files.

    Or maybe the error page lets us know what's wrong with the dataset template that the dataset is trying to use so that we can fix the template. Maybe this has something to do with how certain fields in the template are filled or not filled?

Which version of Dataverse are you using?
v5.14

Any related open or closed issues to this bug report?
None that I could find

@jggautier jggautier added the Type: Bug a defect label Aug 23, 2023
@scolapasta
Copy link
Contributor

The specifc error from the logs:

java.lang.NullPointerException
	at edu.harvard.iq.dataverse.dataset.DatasetUtil.getLicenseURI(DatasetUtil.java:587)```

@scolapasta
Copy link
Contributor

It does seem to be because of the (default) template with custom terms of use. I was able to reproduce on demo , by:

  1. Create a template with custom terms
  2. Set as default
  3. Try to create a dataset
  4. get error

If I switch to a different template, it works again. Also if I create a dataset with a different template, but then try to switch the one with custom terms, it fails silently.

@scolapasta scolapasta moved this to SPRINT- NEEDS SIZING in IQSS Dataverse Project Sep 5, 2023
@scolapasta scolapasta added this to the 6.1 milestone Sep 5, 2023
@sbarbosadataverse
Copy link

@scolapasta more reports of this today, fyi with ajps.

@scolapasta scolapasta modified the milestones: 6.1, 6.0 Sep 7, 2023
landreev added a commit that referenced this issue Sep 7, 2023
@github-project-automation github-project-automation bot moved this from SPRINT- NEEDS SIZING to Clear of the Backlog in IQSS Dataverse Project Sep 8, 2023
qqmyers pushed a commit to QualitativeDataRepository/dataverse that referenced this issue Oct 13, 2023
qqmyers pushed a commit to QualitativeDataRepository/dataverse that referenced this issue Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug a defect
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

3 participants