Confusing error message when calling DashboardAPI.make_stream(..., name=None)
Bug #771182 reported by
Jeremy Chang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dashboard (deprecated) |
Fix Released
|
High
|
Dave Pigott |
Bug Description
The command I tried is
"lc-tool make-stream --dashboard-url http://
The error log returns as
"XML-RPC error 409: Stream with the specified pathname already exists"
Related branches
lp:~dpigott/lava-dashboard-tool/Bug771182-None-fix
- Zygmunt Krynicki (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedlava_dashboard_tool/commands.py (+1/-1)
lp:~dpigott/lava-dashboard/Bug771182-None-fix
- Paul Larson (community): Approve
-
Diff: 12 lines (+2/-0)1 file modifieddashboard_app/xmlrpc.py (+2/-0)
Changed in launch-control: | |
assignee: | nobody → Dave Pigott (dpigott) |
Changed in launch-control-tool: | |
assignee: | nobody → Dave Pigott (dpigott) |
Changed in launch-control-tool: | |
milestone: | none → 0.5 |
Changed in launch-control: | |
milestone: | none → 0.5 |
Changed in lava-dashboard: | |
status: | Confirmed → In Progress |
milestone: | 0.5 → 11.07 |
Changed in lava-dashboard: | |
status: | In Progress → Fix Committed |
Changed in lava-dashboard-tool: | |
milestone: | 0.5 → 2011.06 |
status: | Confirmed → Fix Committed |
Changed in lava-dashboard: | |
status: | Fix Committed → Fix Released |
Changed in lava-dashboard-tool: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The actual issue is caused by lc-tool passing None as the default argument to "name". On the server side this caused IntegrityError (as name cannot be NULL). The client is then given a rather confusing error message (normally IntegrityError only occurs when we have a duplicate stream path).
To solve this we should make lc-tool provide the correct default (empty string) and l-c to handle this situation better (perhaps by converting None to an empty string)