distro mirrors are not accessible over anonymous api

Bug #520469 reported by Curtis Hovey
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Jonathan Davies

Bug Description

securtity.py needs an explicit declaration:

class ViewDistributionMirror(AnonymousAuthorization):
    """Anyone can view a DistroMIrror."""
    usedfor = IDistributionMirror

This test will verify it works:

if __name__ == '__main__':
    from launchpadlib.launchpad import Launchpad, EDGE_SERVICE_ROOT
    lp = Launchpad.login('testing', '', '', EDGE_SERVICE_ROOT)
    ubuntu = lp.distributions['ubuntu']
    mirrors = ubuntu.cdimage_mirrors
    for mirror in mirrors[0:2]:
        print "*Mirror*"
        print mirror.name
        print mirror.description

Related branches

Curtis Hovey (sinzui)
tags: added: api mirror
Jonathan Davies (jpds)
Changed in launchpad-registry:
assignee: nobody → Jonathan Davies (jpds)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad-registry:
milestone: none → 10.02
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: In Progress → Fix Committed
tags: added: qa-needstesting
Curtis Hovey (sinzui)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Curtis Hovey (sinzui) wrote : Bug 520469 Fix released

Fixed released in launchpad-project 10.02.

Changed in launchpad-registry:
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.