summaryrefslogtreecommitdiff
path: root/lib/api/job_artifacts.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-06 11:31:08 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-06 11:31:08 +0200
commitc922fb4b68e3d57bf5328b6825040f1871a48b66 (patch)
tree8a675f474a8d83b08e830f2343e2601ef5155bc8 /lib/api/job_artifacts.rb
parent80b3dcc777c72ee1853b4228baf6310ccd5e44d8 (diff)
downloadgitlab-ce-c922fb4b68e3d57bf5328b6825040f1871a48b66.tar.gz
Respond with a bad request if artifact path is invalid
Diffstat (limited to 'lib/api/job_artifacts.rb')
-rw-r--r--lib/api/job_artifacts.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/job_artifacts.rb b/lib/api/job_artifacts.rb
index e0c5449e65e..2a8fa7659bf 100644
--- a/lib/api/job_artifacts.rb
+++ b/lib/api/job_artifacts.rb
@@ -52,7 +52,7 @@ module API
path = Gitlab::Ci::Build::Artifacts::Path
.new(params[:artifact_path])
- not_found! unless path.valid?
+ bad_request! unless path.valid?
send_artifacts_entry(build, path)
end