-
Notifications
You must be signed in to change notification settings - Fork 531
Description
Bug description
In Dataverse (v6.8), when a previously optional metadata field becomes required for a dataset, or when a dataset is created via the API without all required metadata (dataverse.api.allow-incomplete-metadata=true), the system displays an Incomplete metadata label and normally prevents DRAFT form validation or dataset publication.
However, if the user uploads a file, Dataverse inserts a record for the missing required controlledVocabulary metadata into the datasetfieldvalue table.
Consequence: required controlledVocabulary metadata fields (e.g. subject) are treated as valid in the dataset metadata form even though their value is empty.
Steps to reproduce
- Create a dataset via API with
dataverse.api.allow-incomplete-metadata=truewithout including all required metadata. - Upload a file to the dataset.
- Open the dataset metadata edit form.
- Notice that required
controlledVocabularyfields appear valid although no value is set.
Expected behavior
Required controlledVocabulary fields should remain invalid until a valid value is provided.
Affected version
Dataverse v6.8
Are you thinking about creating a pull request for this issue?
No fix is currently planned by the team.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status