gitlab:artifacts:migrate_to_local doesn't rename the files back what's stored in the DB
Summary
When a user tries to migrate from object storage to local storage, the migration of that (https://docs.gitlab.com/administration/cicd/job_artifacts/#migrating-from-object-storage-to-local-storage) runs through successfully, but all file names are the object storage names instead of the actual filenames.
Related RFH: https://gitlab.com/gitlab-com/request-for-help/-/issues/3408#note_2804435556
Steps to reproduce
- Setup Object storage
- Create a Pipeline Artifact
- Migrate Object storage back to local storage.
- Try downloading the pipeline artifact
What is the current bug behavior?
The command gitlab-rake gitlab:artifacts:migrate_to_local didn't rename the files back to what is stored in the database.
What is the expected correct behavior?
The file should be named correctly and be able to be downloaded in the artifacts view.
Edited by Daniel Prause