Cannot clear all scopes when editing an oauth2 client. Throws DB error

RESOLVED FIXED

Status

()

enhancement
RESOLVED FIXED
4 months ago
3 months ago

People

(Reporter: dkl, Assigned: dkl)

Tracking

Development

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

46 bytes, text/x-github-pull-request
Details | Review
(Assignee)

Description

4 months ago

{"Fields":{"msg":"DBD::mysql::db do failed: Column 'scope_id' cannot be null [for Statement "INSERT INTO oauth2_client_scope (client_id, scope_id) VALUES (?, ?)"] at /app/Bugzilla/DB.pm line 55.\n","request_id":"47e575da"},"Hostname":"ip-172-31-16-199","Logger":"CEREAL","Pid":"30","Type":"Bugzilla.App","Timestamp":1548709925000000000,"EnvVersion":2,"Severity":3}

We should skip inserting when no scopes defined, or throw and error stating at least one scope is always required.

(Assignee)

Comment 1

4 months ago
Posted file GitHub Pull Request

PR already merged to master.

Status: ASSIGNED → RESOLVED
Last Resolved: 3 months ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.