Misleading "Bundle does not exist" for private bundles

Bug #1012604 reported by Fathi Boudra
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
LAVA Dashboard (deprecated)
Fix Released
Medium
Senthil Kumaran S

Bug Description

Go on http://validation.linaro.org/lava-server/dashboard/streams/private/team/linaro/android-daily/bundles/07507b2bf67f49bc104878de3a9f03d5eb4ee99f/

Try to download the bundle as specified on the page:
lava-dashboard-tool get --dashboard-url=http://validation.linaro.org/lava-server/RPC2/ 07507b2bf67f49bc104878de3a9f03d5eb4ee99f

Result:
Bundle 07507b2bf67f49bc104878de3a9f03d5eb4ee99f does not exist

lava-dashboard-tool version 0.7-2012.03

Revision history for this message
Andy Doan (doanac) wrote :

That's a private bundle so you must be authenticated to access it. This can be done with:

 lava-dashboard-tool get --dashboard-url=http://<USER>:<TOKEN>@validation.linaro.org/lava-server/RPC2/

Changed in lava-dashboard-tool:
status: New → Invalid
Revision history for this message
Fathi Boudra (fboudra) wrote : Re: [Bug 1012604] Re: Bundle does not exist while it exists...

On 13 June 2012 18:15, Andy Doan wrote:
> That's a private bundle so you must be authenticated to access it. This
> can be done with:

OK, then the message is incorrect. The bundle exists but auth wasn't passed.
In addition, the "Tips" box on the page is also misleading.

Changed in lava-dashboard-tool:
status: Invalid → New
summary: - Bundle does not exist while it exists...
+ Misleading "Bundle does not exist" for private bundles
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

may be we can change the message more suitable. like
"Bundle does not exist, or you need to provide username and toke to have permission to access that private bundle"

Changed in lava-dashboard-tool:
status: New → Confirmed
Revision history for this message
Yongqin Liu (liuyq0307) wrote :

<zyga> liuyq, fabo: lava-dashboard-tool does not know about private bundles, in other words, if the bundle is private then lava server just denies its existence
<zyga> liuyq, fabo: that bug should be on lava-dashboard, not lava-dashboard-tool
<zyga> IIRC somoene has changed that recently, to return 403 for private data, instead of 404

Changed in lava-dashboard:
milestone: none → 2013.05
assignee: nobody → Senthil Kumaran S (stylesen)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Senthil Kumaran S (stylesen) wrote :

$ lava dashboard get --dashboard-url=http://192.168.1.50/RPC2/ 19d3a88bb10748a1699f761644a69c75f98367bd
XML-RPC error 403: Permission denied. User does not have permissions to access this bundle.

$ lava dashboard --dashboard-url=http://stylesen@192.168.1.50/RPC2/ 19d3a88bb10748a1699f761644a69c75f98367bd
Downloaded bundle 19d3a88bb10748a1699f761644a69c75f98367bd to file '19d3a88bb10748a1699f761644a69c75f98367bd'

$ lava dashboard --dashboard-url=http://stylesen@192.168.1.50/RPC2/ 19d3a88bb10748a1699f76164
Bundle 19d3a88bb10748a1699f76164 does not exist

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

Please make a note that, I missed 'get' in above comment for the second two command runs, which is a copy paste typo.

Changed in lava-dashboard:
status: In Progress → Fix Committed
Changed in lava-dashboard:
status: Fix Committed → Fix Released
Alan Bennett (akbennett)
Changed in lava-dashboard:
status: Fix Released → Won't Fix
Changed in lava-dashboard-tool:
status: Confirmed → Fix Released
Changed in lava-dashboard:
status: Won't Fix → 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.