Project

General

Profile

Actions

Bug #8399

closed

[Workbench] Doesn't explain why a job can't be cancelled

Added by Joshua Randall almost 9 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
Workbench
Target version:
-
Start date:
02/08/2016
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

When pressing the "cancel" button on a job as a user who isn't allowed to cancel the job, workbench is silent on the front-end -- although in the javascript console it gives a: "422 (Unprocessable Entity)" error.

In the workbench logs, it seems that it's request to the API server returned a 403 Permission Denied error:

Started POST "/jobs/z8ta6-8i9sb-q4mufvvy1sml85h/cancel" for 127.0.0.1 at 2016-02-08 17:01:14 +0000
Processing by JobsController#cancel as JS
  Parameters: {"utf8"=>"✓", "return_to"=>"/pipeline_instances/z8ta6-d1hrv-jdkrt8cdtjgiobw", "button"=>"", "id"=>"z8ta6-8i9sb-q4mufvvy1sml85h"}
#<ArvadosApiClient::AccessForbiddenException: #<ArvadosModel::PermissionDeniedError: ArvadosModel::PermissionDeniedError> [API: 403]>
/var/www/arvados-workbench/current/app/models/arvados_api_client.rb:167:in `api'
/var/www/arvados-workbench/current/app/models/job.rb:30:in `cancel'
/var/www/arvados-workbench/current/app/controllers/jobs_controller.rb:50:in `cancel'
...

In the API server logs:

User z8ta6-tpzed-s6urztfw1f2twvc tried to change protected job attributes on locked Job z8ta6-8i9sb-q4mufvvy1sml85h
#<ArvadosModel::PermissionDeniedError: ArvadosModel::PermissionDeniedError>

Indeed, I was trying to cancel the job by a user other than the user who started the jobs. However, my expectation would be that either the workbench would report back the error and give some indication that there is a problem to do with permissions, or perhaps that the cancel button should be disabled if there is in fact no point in pressing it.


Related issues 1 (1 open0 closed)

Related to Arvados - Bug #4273: [API] as admin user, permission denied canceling a job (started by another user)New

Actions
Actions #1

Updated by Brett Smith almost 9 years ago

  • Subject changed from Workbench doesn't explain why a job can't be cancelled to [Workbench] Doesn't explain why a job can't be cancelled
Actions #2

Updated by Brett Smith almost 9 years ago

  • Target version set to Arvados Future Sprints
Actions #3

Updated by Ward Vandewege over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #4

Updated by Peter Amstutz almost 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF