Commit Graph

7 Commits

Author SHA1 Message Date
Douwe Maan 9cf4e47341 Merge branch 'security-45689-fix-archive-cache-bug' into 'security-10-7'
Serve archive requests with the correct file in all cases (10.7)

See merge request gitlab/gitlabhq!2376
2018-04-30 15:00:14 -05:00
Rémy Coutable ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Douglas Barbosa Alexandre 2053d89172 Extract helper methods to clean up RepositoryArchiveCleanUpService spec 2016-07-21 11:47:28 -03:00
Douglas Barbosa Alexandre 92ee8c5e64 Use Dir.mktmpdir instead of FileUtils.mkdir_p in the spec 2016-07-21 11:47:27 -03:00
Douglas Barbosa Alexandre 79983afbbf Use find instead Ruby to remove files due to performance reasons 2016-07-21 10:31:49 -03:00
Douglas Barbosa Alexandre 1bda451789 Cover the behavior RepositoryArchiveCleanUpService with tests 2016-07-21 10:31:49 -03:00
Douglas Barbosa Alexandre a6de806498 Add service to clean up repository archive cache
Replace invocation of `find` with Ruby code that matches old cached
files in a better, and safe way to avoid data-integrity issues.
2016-07-21 10:31:49 -03:00