trailing slash ('/') URL sensitivity (leads to misleading error text)

Bug #1244305 reported by Kim Phillips
6
This bug affects 1 person
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/latest-image-oe.json

yet I get:

EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-notice for more info)
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/latest-image-oe.json
EXPERIMENTAL - SUBJECT TO CHANGE (See --experimental-notice for more info)
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
Arthur She (arthur-she)
Changed in lava-tool:
status: Confirmed → In Progress
Revision history for this message
Arthur She (arthur-she) wrote :

Normalize the xmlrpc url for lava-scheduler related commands

https://staging.review.linaro.org/#/c/397/

Revision history for this message
Arthur She (arthur-she) wrote :

The patches had been merged into revision 43166a125061f5eac8da9a30b7070fb0d3b0fae8

Changed in lava-tool:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.