• Douwe Maan's avatar
    Merge branch 'fix-data-integrity-issue-with-repository-downloads-path' into 'master' · 01bc55ca
    Douwe Maan authored
    Avoid data-integrity issue when cleaning up repository archive cache
    
    ## What does this MR do?
    Sets the default value for `repository_downloads_path` if someone has it configured incorrectly, and it points to the path where repositories are stored. It's also replace invocation of `find` with Ruby code that matches old cached files in a better, and safe way to avoid data-integrity issues.
    
    ## Why was this MR needed?
    The `repository_downloads_path` is used by the `RepositoryArchiveCacheWorker` to remove outdated repository archives, if it points to the wrong directory can cause some data-integrity issue.
    
    ## What are the relevant issue numbers?
    Closes #14222
    
    See merge request !5285
    (cherry picked from commit d2598f62)
    01bc55ca
repository_archive_cache_worker.rb 169 Bytes