Cannot lookup CVEs by name

Bug #322560 reported by Kees Cook
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
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
Revision history for this message
Leonard Richardson (leonardr) wrote :

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

Revision history for this message
Kees Cook (kees) wrote :

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

Revision history for this message
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)
tags: added: platform-want
Revision history for this message
Kees Cook (kees) wrote :

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

Revision history for this message
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)
Changed in launchpad:
importance: Medium → Low
tags: added: cves
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.