RockefellerArchiveCenter / aurora

A Django web application to receive, virus check and validate transfers of digital archival records, and allow archivists to appraise and accession those records.
http://projectelectron.rockarch.org/
MIT License
26 stars 6 forks source link

Validation should ensure that `Source_Organization` in bag-info.txt matches the name of the organization instance associated with the transfer #299

Closed helrond closed 4 years ago

helrond commented 5 years ago

Currently the save_bag_data() method on the Archives model queries Organization objects based on the value of the Source_Organization key in the bag-info.txt file. This theoretically allows organizations to submit bags which would be associated with other organizations...not good. Add a check to ensure that the name of the organization associated with the transfer is the same as the value of Source_Data in bag-info.txt.

helrond commented 4 years ago

On further thought, this is why we have BagIt Profiles, so closing this.