From db55fa594274c95ffade4089aad3d463f918d4c3 Mon Sep 17 00:00:00 2001 From: Shinya Maeda <shinya@gitlab.com> Date: Sun, 27 May 2018 21:09:58 +0900 Subject: [PATCH] Disallow updating job stauts if it's not running --- lib/api/runner.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/api/runner.rb b/lib/api/runner.rb index a7f1cb1131f..59898cd2477 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -123,6 +123,7 @@ module API end put '/:id' do job = authenticate_job! + forbidden!('Job is not running') unless job.running? job.trace.set(params[:trace]) if params[:trace] -- 2.30.9