Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-01-25 17:08:25 +0300
committerShinya Maeda <shinya@gitlab.com>2018-02-06 09:50:07 +0300
commit0d960fac9115c765896450daf625752f5e9db185 (patch)
tree86c0a42e6d92a77dea06e47ee2f1b66174a65c54 /app/uploaders
parent14d1715610b7df7f8f518a8b57ee4176f208c4a8 (diff)
JobArtifactUploader#open raise execption if its not Filestorage
Diffstat (limited to 'app/uploaders')
-rw-r--r--app/uploaders/job_artifact_uploader.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/uploaders/job_artifact_uploader.rb b/app/uploaders/job_artifact_uploader.rb
index 8766db94079..841168438d8 100644
--- a/app/uploaders/job_artifact_uploader.rb
+++ b/app/uploaders/job_artifact_uploader.rb
@@ -14,7 +14,9 @@ class JobArtifactUploader < GitlabUploader
end
def open
- File.open(path, "rb")
+ raise 'Only File System is supported' unless file_storage?
+
+ File.open(path) if path
end
private