-
Notifications
You must be signed in to change notification settings - Fork 477
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
Upload file to published version (creating a draft) incorrectly allows same file name #6948
Comments
Also can we have a db unique constraint on columns datasetversion_id, directorylabel, and label of the filemetadata table? That way db would never allow. |
If I run this query on my 3 month old copy of production data I find that there are about 350 dataset versions effected, some 311 Released, 25 in Draft and 18 Deaccessioned : select versionstate, count() from datasetversion where id in |
Also some 1500 or so file metadata combinations are involved when querying only released versions. Over 200 have more than two name/directory/version duplicates. Bottom line: I don't think it's feasible to try to clean this up and add the constraint in Dataverse 5.0 |
2a. (notice the name does not get auto changed)
The save succeeds, when it shouldn't, and you're left with a dataset with two files with the same path+name.
Expected behavior: file should be auto renamed when uploaded.
The text was updated successfully, but these errors were encountered: