Required metadata field not detected as incomplete when becoming required after dataset creation
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 564
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 29
Description
Bug description
Context: This issue is related to #11900 and concerns Scenario 2 identified during testing.
When a controlledVocabulary metadata field becomes required after a dataset has been created (for example, following a metadata block modification via TSV file), Dataverse does not correctly detect this missing metadata.
Issue: The dataset that was previously valid with optional metadata allows form validation even though the newly required field is not filled in.
Steps to reproduce
- Create a dataset with a set of required metadata
- Modify the metadata block to make a previously optional field required (e.g.,
publicationRelationType) - Open the existing dataset's edit form
- Notice that the newly required field is not marked as invalid and the form can be validated without filling in this field
Expected behavior
- The edit form should clearly indicate newly required but unfilled fields
- DRAFT form validation should be blocked until all required fields are filled in
Affected version
Dataverse v6.9
Are you thinking about creating a pull request for this issue?
No fix is currently planned by the team.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue by changing a metadata block so publicationRelationType becomes required, then open the existing dataset's edit form. Trace the DRAFT form validation for controlledVocabulary fields and verify that newly required, empty fields are marked invalid and block validation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100