Cannot lookup CVEs by name

Bug #322560 reported by Kees Cook on 2009-01-29
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Low
Unassigned

Bug Description

I was expecting "lp.cves" to work like "lp.people".

In [10]: lp.cves['CVE-2008-5079']
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

./<ipython console> in <module>()

/usr/lib/python2.5/site-packages/launchpadlib/resource.pyc in __getitem__(self, key)
    543 else:
    544 # Look up a single item by its position in the list.
--> 545 found_slice = self._get_slice(slice(key, key+1))
    546 if len(found_slice) != 1:
    547 raise IndexError("list index out of range")

TypeError: cannot concatenate 'str' and 'int' objects

Changed in malone:
importance: Undecided → Medium
milestone: none → 2.2.2
status: New → Triaged
Changed in malone:
milestone: 2.2.2 → none
Leonard Richardson (leonardr) wrote :

This actually requires a change to launchpadlib: you'll need to add a new resource CollectionWithKeyBasedLookup.

Kees Cook (kees) wrote :

Can't this just use whatever getSeries(name_or_version=...) uses?

Kees Cook (kees) wrote :

In the meantime, I can work around this by using "load" directly, e.g.:
lp.load('https://api.edge.launchpad.net/beta/bugs/cve/2009-3001')

Kees Cook (kees) on 2009-10-20
tags: added: platform-want
Kees Cook (kees) wrote :

This continues to be a rather annoying blocking. Can this at least get scheduled?

Robert Collins (lifeless) wrote :

I suggest you escalate via the stakeholder process - as you have a workaround the impact of this issue is quite limited in terms of number of users affected and potentially benefiting from a fix.

Curtis Hovey (sinzui) on 2011-09-29
Changed in launchpad:
importance: Medium → Low
tags: added: cves
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers