Bug #15933
closed
[API] user setup method missing "uuid" parameter in discovery document
Added by Peter Amstutz almost 5 years ago.
Updated almost 5 years ago.
Release relationship:
Auto
Description
User setup can't be done from command line because it is missing the "uuid" parameter.
Also, it accepts a "user" object parameter but I don't think it does anything. It should be removed.
Also, trying to invoke "setup" gave a weird error, apparently it turned the 'setup' request into a 'update_uuid' request. Maybe controller is rewriting the request?
{"errors":["request failed: http://localhost:8004/arvados/v1/users/ce8i5-tpzed-6oia07y9o4zvtl6/update_uuid: 422 Unprocessable Entity: #\u003cArgumentError: new_uuid parameter is required\u003e (req-92kuwtcxxmpmz2i94jr7)"]}
- Description updated (diff)
- Subject changed from [API] "setup" missing uuid parameter to [API] user setup method missing "uuid" parameter in discovery document
- Description updated (diff)
- Target version changed from 2020-01-02 Sprint to 2020-01-15 Sprint
Also, trying to invoke "setup" gave a weird error, apparently it turned the 'setup' request into a 'update_uuid' request. Maybe controller is rewriting the request?
This was fixed in #15922.
Also, it accepts a "user" object parameter but I don't think it does anything. It should be removed.
Actually it does still do something with the user object, it creates a new user with the supplied attributes and then set up the user.
- Description updated (diff)
- Target version changed from 2020-01-15 Sprint to 2020-01-02 Sprint
- Assigned To set to Peter Amstutz
- Status changed from New to In Progress
The changes LGTM. I've tried several times to start a new arvbox instance but for some reason the API server is failing, but don't think it's related to this branch:
...
2019-12-17_22:40:49.57017 + test -a /usr/src/arvados/services/api/config/arvados_config.rb
2019-12-17_22:40:49.57019 + rm -f config/application.yml config/database.yml
2019-12-17_22:40:49.58532 + test -f /var/lib/arvados/api_database_setup
2019-12-17_22:40:49.58534 + bundle exec rake db:setup
2019-12-17_22:40:51.29601 rake aborted!
2019-12-17_22:40:51.30017 LoadError: cannot load such file -- bundler/setup
2019-12-17_22:40:51.30030 /usr/src/arvados/services/api/config/boot.rb:8:in `require'
2019-12-17_22:40:51.30030 /usr/src/arvados/services/api/config/boot.rb:8:in `<top (required)>'
2019-12-17_22:40:51.30031 /usr/src/arvados/services/api/config/application.rb:5:in `require'
...
Local services/api
test run was successful, please merge.
- Status changed from In Progress to Resolved
Also available in: Atom
PDF