Skip to content

OAuth Validation Error When Adding Trash Permission Scopes #2018

@dkindlund

Description

@dkindlund

Describe the bug
When attempting to add trash-specific scopes to my OAuth app, I get the following validation error:

Validation error: Invalid enum value. Expected 'table|create' | 'table|delete' | 'table|export' | 'table|import' | 'table|read' | 'table|update' | 'view|create' | 'view|delete' | 'view|read' | 'view|update' | 'field|create' | 'field|delete' | 'field|read' | 'field|update' | 'record|comment' | 'record|create' | 'record|delete' | 'record|read' | 'record|update' | 'automation|create' | 'automation|delete' | 'automation|read' | 'automation|update' | 'user|email_read', received 'table|trash_read' at "scopes[13]"; Invalid enum value. Expected 'table|create' | 'table|delete' | 'table|export' | 'table|import' | 'table|read' | 'table|update' | 'view|create' | 'view|delete' | 'view|read' | 'view|update' | 'field|create' | 'field|delete' | 'field|read' | 'field|update' | 'record|comment' | 'record|create' | 'record|delete' | 'record|read' | 'record|update' | 'automation|create' | 'automation|delete' | 'automation|read' | 'automation|update' | 'user|email_read', received 'table|trash_update' at "scopes[14]"; Invalid enum value. Expected 'table|create' | 'table|delete' | 'table|export' | 'table|import' | 'table|read' | 'table|update' | 'view|create' | 'view|delete' | 'view|read' | 'view|update' | 'field|create' | 'field|delete' | 'field|read' | 'field|update' | 'record|comment' | 'record|create' | 'record|delete' | 'record|read' | 'record|update' | 'automation|create' | 'automation|delete' | 'automation|read' | 'automation|update' | 'user|email_read', received 'table|trash_reset' at "scopes[15]"

To Reproduce
Steps to reproduce the behavior:

  1. Go to an existing OAuth Apps entry
  2. Check the Read table trash, Update table trash, and Reset table trash checkboxes
  3. Click the Update button
  4. See error

Expected behavior
I would expect to be able to grant my OAuth app trash management scopes without any error.

Screenshots

Image Image

Client (please complete the following information):

  • OS: [macOS]
  • Browser [Chrome]

Platform (Please tell us which deployment version you are using)
[docker-standalone]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions