TypeError when requesting +tickets on an empty project

Bug #102357 reported by Francis J. Lacoste
4
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Curtis Hovey

Bug Description

Viewing the +tickets page on an IProject that doesn't contain any IProducts oops like:

OOPS-457B1560
OOPS-457D1438
OOPS-457C2408

To reproduce using sample data, visit http://answers.launchpad.dev/aaa/

Revision history for this message
Francis J. Lacoste (flacoste) wrote :

This bugs is making the daily top OOPS.

Changed in launchpad-answers:
assignee: nobody → sinzui-is
importance: Undecided → Critical
status: Unconfirmed → Confirmed
Revision history for this message
Curtis Hovey (sinzui) wrote :

Bug-102357 is added to pending reviews. I included a link to the diff.

The issue was thornier that I first perceived. It was a small fix to guard against calling getSupportLanguages() for a Project with no Products, but that did fix everything. I was seeing ALL questions for ALL Products on the Project. A SQLObject does neither None, not is it and empty list, but it may generate a empty list, creating an open join. I added guards and doc tests to check and illustrate how an empty Project should behave.

Changed in launchpad-answers:
status: Confirmed → In Progress
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fixed in RF 4077

Changed in launchpad-answers:
status: In Progress → Fix Committed
Revision history for this message
Curtis Hovey (sinzui) wrote :

Fix was released last week.

Changed in launchpad-answers:
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.