diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 11:31:08 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-06 11:31:08 +0200 |
commit | c922fb4b68e3d57bf5328b6825040f1871a48b66 (patch) | |
tree | 8a675f474a8d83b08e830f2343e2601ef5155bc8 /lib/api/job_artifacts.rb | |
parent | 80b3dcc777c72ee1853b4228baf6310ccd5e44d8 (diff) | |
download | gitlab-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.rb | 2 |
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 |