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

Exceeding the "yes"-votes-per-option limit by voting at the same time #3752

Open
5 of 12 tasks
ZID-TU-Graz-Collab opened this issue Oct 15, 2024 · 2 comments
Open
5 of 12 tasks
Labels
Milestone

Comments

@ZID-TU-Graz-Collab
Copy link

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • I agree to follow Nextcloud's Code of Conduct.

What went wrong, what did you observe?

When multiple users vote for the same Option at the same time, the yes-option-limit is exceeded.
This can happen when (more than) 2 users open the poll with the option-limit not full yet.
As long as the users don't reload their website they can vote on the option, even though the limit is already exceeded after the first vote of one of them.

What did you expect, how polls should behave instead?

After selecting an option there should be a check if this option is still free, then the green marker appears.

What steps does it need to replay this bug?

  1. create a poll & limit yes-votes per option to 1
  2. Share the poll to another user
  3. Open the poll for both users (different browsers or private window)
  4. select the same option on both accounts, without reloading either website
  5. reload one website -> 2 votes for the same option
    Screenshot 1: Open simultaneouslyImage
    2: Select the same option, don't reload inbetweenImage3: After reloading
    Image

Installation method

Installed/updated from the appstore (Apps section of your site)

Installation type

Updated from a minor version within same major version (i.e. 4.0.0 to 4.1.1)

Affected polls version

7.2.2

Which browser did you use, when experiencing the bug?

  • Firefox
  • Chrome
  • Chromium/Chromium based (i.e. Edge)
  • Safari
  • Other/Don't know

Other browser

No response

Add your browser log here

No response

Additional client environment information

No response

NC version

Nextcloud 29

Other Nextcloud version

29.0.6

PHP engine version

PHP 8.2

Other PHP version

No response

Database engine

MariaDB

Database Engine version or other Database

No response

Which user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other/Don't know

Add your nextcloud server log here

No response

Additional environment informations

No response

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Additional Information

No response

@dartcafe dartcafe added this to the 7.2.5 milestone Oct 16, 2024
@dartcafe
Copy link
Collaborator

With 7.2.4 the vote actually gets blocked, but without proper user feedback.

@ZID-TU-Graz-Collab
Copy link
Author

This is already a big improvement.
We can confirm, as soon as you pick an option, all other options that got their max votes filled out n the meantime get properly blocked.
If you pick one of the options that has its max votes filled out, before picking another option that is still open, you are still able to exceed the limit on this specific option.
Reproducible in the same way (steps 1-5) as original Bug Report.

v. 7.2.4

@dartcafe dartcafe modified the milestones: 7.2.5, 7.2.6 Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants