Explicit hashed path check for trace, prevents background migration from accessing file_location column that doesn't exist

This commit is contained in:
Jasper Maes 2018-09-05 18:12:46 +02:00
parent f6097cbfaa
commit 1792450978
2 changed files with 9 additions and 1 deletions

View File

@ -87,7 +87,9 @@ module Ci
end
def hashed_path?
super || self.try(:file_location).nil?
return true if trace? # ArchiveLegacyTraces background migration might not have `file_location` column
super || self.file_location.nil?
end
def expire_in

View File

@ -0,0 +1,6 @@
---
title: Explicit hashed path check for trace, prevents background migration from accessing
file_location column that doesn't exist
merge_request: 21533
author: Jasper Maes
type: other