View Builds causes Oops if empty

Bug #6431 reported by Oliver Paukstadt
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Christian Reis

Bug Description

zubuntu distribution has no builds right now.

If you select "View Builds" an oops occurs.
-> https://launchpad.net/distros/zubuntu/+builds

The reference for this error is OOPS-A450.

Revision history for this message
Dafydd Harries (daf) wrote :

Odd traceback:

    * Module canonical.launchpad.browser.build, line 118, in setupBuildList
      self.batch = Batch(builds, start)
    * Module canonical.lp.z3batching, line 35, in __init__
      listlength = len(list)

TypeError: len() of unsized object

Changed in launchpad:
status: Unconfirmed → Confirmed
Christian Reis (kiko)
Changed in launchpad:
assignee: nobody → cprov
Revision history for this message
Celso Providelo (cprov) wrote :

I wonder if it simply exposes a bug we have in batching system, since we normally return 'None' for empty results instead of an empty sized object.
I'd make batching system to be aware of it instead of casting it locally to a list or other sized object in each call site.
Any objection ?

Celso Providelo (cprov)
Changed in launchpad:
assignee: cprov → kiko
Christian Reis (kiko)
Changed in launchpad:
status: Confirmed → In Progress
Christian Reis (kiko)
Changed in launchpad:
status: In Progress → Fix Committed
Christian Reis (kiko)
Changed in launchpad:
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.