Exceeding the "yes"-votes-per-option limit by voting at the same time
⚠️ This issue respects the following points: ⚠️
- [x] This is a bug, not a question or a configuration/webserver/proxy issue.
- [x] This issue is not already reported on Github (I've searched it).
- [x] 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?
- create a poll & limit yes-votes per option to 1
- Share the poll to another user
- Open the poll for both users (different browsers or private window)
- select the same option on both accounts, without reloading either website
- reload one website -> 2 votes for the same option
Screenshot 1: Open simultaneously
2: Select the same option, don't reload inbetween
3: After reloading
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?
- [x] Firefox
- [x] 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
With 7.2.4 the vote actually gets blocked, but without proper user feedback.
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
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.