Closed Bug 1523404 Opened 4 years ago Closed 4 years ago

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

Categories

(bugzilla.mozilla.org :: General, enhancement)

Development
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

Details

Attachments

(1 file)

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

{"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.

Attached file GitHub Pull Request

PR already merged to master.

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.