Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Result computations fail when ballot box contains only 1 ballot #41

Closed
Nitorac opened this issue Aug 4, 2021 · 1 comment
Closed

Result computations fail when ballot box contains only 1 ballot #41

Nitorac opened this issue Aug 4, 2021 · 1 comment

Comments

@Nitorac
Copy link

Nitorac commented Aug 4, 2021

I encoutered an issue with Belenios branch stable (last commit in branch : d0edd18) when I want to compute the results.

Environment

Clean install of Belenios from stable branch on Debian, using the demo folder with the run-server.sh.

Description

I create an election with 1 or more voters, only one of them submit a ballot.
The ballot box must contain only 1 ballot submitted.
Close the election and try to compute the results.

Expected behavior

When clicking the button "Compute the results", Belenios should redirect on results page.

Actual behavior

When clicking the button "Compute the results", I have a response with status code 500 and body : Error: (Invalid_argument "Cannot compute result")

Tests

I have tested this behavior with :

  • 1 voters with 1 ballot in the ballot box -> Bug happens
  • 3 voters with 1 ballot in the ballot box -> Bug happens
  • 3 voters with 2 ballots in the ballot box -> No bug happens

Screens

Location_of_bug_in_election_flow
Faulty_server_http_response

I am open to any precision if needed !

glondu added a commit that referenced this issue Aug 5, 2021
Its result was wrong on input 1.
@glondu
Copy link
Owner

glondu commented Aug 5, 2021

Thank you for this bug report! It should be fixed now.

@glondu glondu closed this as completed Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants