Trying to acess a member of the collection of people with an invalid key with spaces succeeds

Bug #1391936 reported by David Lawson
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpadlib
New
Undecided
Unassigned

Bug Description

If you pull the full list of Launchpad members and attempt to access a specific member with an invalid key with spaces, of which the first word is a valid key, it succeeds but gives you the wrong Launchpad member. For example:

>>> from launchpadlib.launchpad import Launchpad
>>> launchpad = Launchpad.login_anonymously('people-test', 'production')
>>> people = launchpad.people
>>> olivia = people["olivia lalala does not exist"]
>>> olivia.self_link
u'https://api.launchpad.net/1.0/~olivia'

I would expect a KeyError in this situation.

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.