trailing slash ('/') URL sensitivity (leads to misleading error text)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Tool |
Fix Released
|
Medium
|
Arthur She |
Bug Description
If I do this:
$ lava-tool auth-add https://<email address hidden>/RPC2
Paste token for https://<email address hidden>/RPC2/:
Token added successfully for user kim-phillips.
Then I should equivalently be able to do this:
$ lava-tool submit-job https://<email address hidden>/RPC2 ~/lava/
yet I get:
EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-
ERROR: Username provided but no token found.
which is utterly confusing to the average user that knows his username is specified correctly.
Come to find that if I re-add the trailing slash manually, it works:
$ lava-tool submit-job https://<email address hidden>/RPC2/ ~/lava/
EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-
submitted as job id: 81176
The version without the trailing-slash should work just the same.
Changed in lava-tool: | |
assignee: | nobody → Arthur She (arthur-she) |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in lava-tool: | |
status: | Confirmed → In Progress |
Normalize the xmlrpc url for lava-scheduler related commands
https:/ /staging. review. linaro. org/#/c/ 397/