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

Dataverse don't show alerts when a user wants to delete files in a dataset with metadata value corrupted. #9767

Open
Gerafp opened this issue Aug 8, 2023 · 1 comment
Labels
Feature: Metadata Type: Bug a defect User Role: Depositor Creates datasets, uploads data, etc.

Comments

@Gerafp
Copy link
Contributor

Gerafp commented Aug 8, 2023

In recent days, an user sent us a ticket that talking about a problem when he wants to delete a file. Basically, when he clicks on the remove button and confirms, dataverse doesn't do anything. Not messages error in UI or internal logs and it doesn't create an draft version.

We investigated and tried to recreate the issue we make some test wich can be help us:

  • We changed a metadata field. If all things was correct a draft version was created. But, dataverse showed this error:

image

@alejandratenorio found that the error was caused for a metadata value, it had a blank space.

image

She resolved the metadata issue and saved the changes. Eventually, Dataverse created the draft version, and we were also able to delete the data file. If she hadn't checked the metadata fields, we wouldn't have identified the error, as establishing a connection between the corrupted metadata value and the ability to delete a file from the dataset can be misleading.

Our question is: Do you have any way to alert when the dataset has a problem with its metadata values? I mean, in case to the users only want to delete a file without change info. Dataverse don't show any alert and the problem can be confuse for users with little experience in Dataverse

  • When does this issue occur?

When we want to edit metadata in old datasets. I think before a field validation.

  • Which page(s) does it occurs on?

In dataset.xhtml

Which version of Dataverse are you using?

5.10.1

@pdurbin
Copy link
Member

pdurbin commented Aug 10, 2023

@Gerafp hi! I would suggest trying this "Validate the dataset and its components (DatasetVersion, FileMetadatas, etc.) for constraint violations" - https://guides.dataverse.org/en/5.10.1/api/native-api.html#dataset-validation

@pdurbin pdurbin added Feature: Metadata Type: Bug a defect User Role: Depositor Creates datasets, uploads data, etc. labels Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Metadata Type: Bug a defect User Role: Depositor Creates datasets, uploads data, etc.
Projects
None yet
Development

No branches or pull requests

2 participants