Bug #16566
Updated by Ward Vandewege over 4 years ago
Error:
<pre>
Error: #<ActiveRecord::StatementInvalid: PG::NotNullViolation: ERROR: null value in column "api_client_id" violates not-null constraint
</pre>
Steps to reproduce:
1. Create a system root token with create_superuser_token.rb. This is a v1 token.
2. load it in ARVADOS_API_TOKEN
3. try to create a token, e.g. with the instructions from the `Create scoped token` section on the `Set up a shell node` page:
<pre>
$ arv api_client_authorization create --api-client-authorization '{"scopes":["GET /arvados/v1/virtual_machines/zzzzz-2x53u-zzzzzzzzzzzzzzz/logins"]}'
</pre>
The system root token isn't associated with a client.