Unable to access archive_permission for archive when not logged in

Bug #1705996 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
High
Unassigned

Bug Description

When running as an anonymous user, accessing archive_permissions for a distribution's main_archive does not work.

>>> perms = lp.distributions['ubuntu'].main_archive.getAllPermissions()
>>> len(perms)
761
>>> perms[0]
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/lazr/restfulclient/resource.py", line 854, in __getitem__
    raise IndexError("list index out of range")
IndexError: list index out of range

The same operation works correctly when ran as an user.

Tags: api lp-soyuz
Colin Watson (cjwatson)
affects: launchpadlib → launchpad
tags: added: api lp-soyuz
Changed in launchpad:
status: New → Triaged
importance: Undecided → High
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.