metacatui
metacatui copied to clipboard
MetacatUI attempts to re-upload resource map with the same ID when a file name is changed
Steps to reproduce
- Make a new dataset with at least one file
- Save the dataset
- Edit the dataset and change the file name, don't change ANYTHING else
- Save the dataset
- See error:
HashStore refs files already exist for pid resource_map_urn:uuid:... and cid: 8ed23f53022a...
If you change anything in the EML at the same time that you change the file name, the error does not occur. This is odd because the EML does change when a file is renamed in the <entityName> element.