This adds a check to see if a binary is some type of redirected content, and if so writes additional headers from the Fedora repository.
Notes
I opted for adding .fcrepo to the file so we can differentiate between the two header types, wasn't sure the best but at least that gives information about where they came from. Alternatively we could change this so that the non-redirected headers are written as file.external.headers and the redirected headers are file.external.redirect-headers. This might allow for fewer changes when updating the upgrade-utils.
Testing
Add some external content to your Fedora repository in the form of redirected content, e.g.
Resolves: https://fedora-repository.atlassian.net/browse/FCREPO-3620
This adds a check to see if a binary is some type of redirected content, and if so writes additional headers from the Fedora repository.
Notes
I opted for adding
.fcrepo
to the file so we can differentiate between the two header types, wasn't sure the best but at least that gives information about where they came from. Alternatively we could change this so that the non-redirected headers are written asfile.external.headers
and the redirected headers arefile.external.redirect-headers
. This might allow for fewer changes when updating theupgrade-utils
.Testing
Add some external content to your Fedora repository in the form of redirected content, e.g.
Run the import-export-utility, specifying that external content should be retrieved
Verify that the fcrepo headers exist and look accurate