Display of poll results will break if everybody spoilt their votes

Bug #39463 reported by Guilherme Salgado
14
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Guilherme Salgado

Bug Description

The IPoll.getWinner() method will break if the option with the most number of votes is NULL (None of the above). We need to fix it and make sure we display the number of people who voted for "None of the above".

OOPS-102C183 shows the issue.

OOPS-935H371 TypeError: int() argument must be a string or a number

Recent OOPSes: OOPS-1000A3798, OOPS-1000F1293, OOPS-1000F2009

Changed in launchpad:
status: Unconfirmed → Confirmed
Changed in launchpad:
assignee: nobody → matsubara
Revision history for this message
Guilherme Salgado (salgado) wrote :

this is actually very unlikely to happen in practice, so I'm reducing its importance

Changed in launchpad:
importance: High → Low
description: updated
Revision history for this message
Christian Reis (kiko) wrote :

This URL is permanently and publically broken: https://launchpad.net/%7Eubuntu-l10n-hi/+poll/newmember/+index

Changed in launchpad:
assignee: matsubara → nobody
Revision history for this message
Christian Reis (kiko) wrote :
description: updated
Revision history for this message
Ursula Junque (ursinha) wrote :
Revision history for this message
Ursula Junque (ursinha) wrote :

Recently: OOPS-953D1013, OOPS-953D1777, OOPS-953E2388, OOPS-953E256
for https://launchpad.net/%7Eubuntu-l10n-es/+poll/anakron/+index

Ursula Junque (ursinha)
description: updated
Changed in launchpad-foundations:
status: Confirmed → Triaged
Changed in launchpad-registry:
assignee: nobody → salgado
milestone: none → 2.2.1
Revision history for this message
Guilherme Salgado (salgado) wrote :

The fix on my branch will get rid of the OOPS and report that these polls have no winners.

Revision history for this message
Guilherme Salgado (salgado) wrote :

mainline r7675

Changed in launchpad-registry:
status: Triaged → Fix Committed
Changed in launchpad-registry:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.