Cannot view code_review_vote_reference collection contents when logged in anonymously

Bug #1786474 reported by Robie Basak
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Colin Watson

Bug Description

$ python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import launchpadlib.launchpad
>>> lp = launchpadlib.launchpad.Launchpad.login_anonymously(
... 'git-ubuntu-auto-upload-tag', 'production', version='devel'
... )
>>> mp = lp.load('')
>>> len(mp.votes)
>>> list(mp.votes)
>>> mp.votes[0]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/", line 854, in __getitem__
    raise IndexError("list index out of range")
IndexError: list index out of range

Expected: stuff in list(mp.votes). Actual: empty, even though len(mp.votes) shows that entries exist.

Workaround: log in. Using launchpadlib.launchpad.Launchpad.login_with, authenticating as me, works as expected.

<cjwatson> it'll be in the security adapter for CRVRs in lib/lp/, probably

Tags: qa-ok

Related branches

Colin Watson (cjwatson)
Changed in launchpad:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
tags: added: qa-ok
removed: qa-needstesting
Colin Watson (cjwatson)
Changed in launchpad:
status: Fix Committed → 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.