Skip to content

Job permissions denied responses are mislabeled #3

@deardooley

Description

@deardooley

Issue summary

When requests are made to the jobs API and the user does not have sufficient permissions, the error response returned is mislabeled in certain situations.

What platform services are impacted?

  • Apps
  • Events
  • Files
  • Groups
  • Jobs
  • Logging
  • Metadata
  • Monitors
  • Notifications
  • Templates
  • Postits
  • Profiles
  • Preferences
  • Reactors
  • Realtime
  • Repositories
  • Stats
  • Systems
  • Tags
  • Tenants
  • Transfers
  • Transforms
  • Usage
  • Uuids

To which tenant does this issue apply?

Community - https://api.agaveplatform.org

What version of the platform are you using?

2.2.*

Steps to recreate the issue

# list the job by id
$ jobs-list 8200243351251422745-242ac114-0001-007
8290233351251422745-242ac114-0001-007 FINISHED

# attempt to resubmit the job
$ jobs-resubmit -v 8200243351251422745-242ac114-0001-007
User does not have permission to view this job

Expected behavior

The response should state that the user does not have permission to submit the job.

Actual behavior

The response states that the user does not have permission to view the job, which they clearly have.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions