launchpadlib person sshkeys requires authentication while fetching via URL doesn't

Bug #1014996 reported by Stewart Smith on 2012-06-19
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
William Grant

Bug Description

Code like the following doesn't print anything:


from launchpadlib.launchpad import Launchpad

cachedir = "~/.launchpadlib/cache/"
launchpad = Launchpad.login_anonymously('fetch-ssh-keys', 'production', cachedir)

group = launchpad.people['percona-core']
for person in group.members:
        keys = person.sshkeys
        for k in keys:
                print k

While if you construct a url such as '' + + '/+sshkeys' and fetch it you're home free (i.e. it works)

Related branches

William Grant (wgrant) wrote :

Needs the usual trivial AnonymousAuthorization fix.

tags: added: api ssh trivial
Changed in launchpad:
importance: Undecided → Low
status: New → Triaged
Curtis Hovey (sinzui) wrote :

Specifically, needs
    class ViewISSHKey(AnonymousAuthorization):
        """Anyone can view an IISSHKey."""
        usedfor = ISSHKey

And we want a test using the anonymous login to show that the key can be retrieved from the collection.

William Grant (wgrant) on 2016-04-12
Changed in launchpad:
assignee: nobody → William Grant (wgrant)
status: Triaged → In Progress
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant) on 2016-04-15
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant) on 2016-05-06
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers