-
Notifications
You must be signed in to change notification settings - Fork 72
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
Public Shared Polls queries for users in a loop? #2855
Comments
I have no idea what this can be. Reproducing failed. But I have no SAML or SSO in any way. |
This issue is marked as stale, because it had no activity in the last 30 days. It will be closed in 5 days. |
the issue still persists, thank you stale bot for considering my vacation time... i am not a maintainer of a SSO App so i cant give you much feedback on this. should i contact them for you? open an issue there when you are sure that this is causing the user search in polls to fail? @dartcafe |
And don't blame the stale bot. He just did his work. If you were on vacation and come back, just reopen the issue with a comment. But I can't still not help because I have no idea, how to debug this issue or even reproduce it. I was only speculating, if another developer has a hint what is going wrong here. The user check simply calls a search function from the core system and then the error is raised with your configuration. To be precise, it is raised here: https://github.com/nextcloud/server/blob/2b7d03778fb47908174a3a2f380278addc98cae5/lib/private/AppFramework/Http/Dispatcher.php#L144-L159 |
It seems that this is an performance issue with a large user & group database. The request took 35s in my test.
The part |
@nickvergessen Any idea? Why are such numbers of queries created. I would expect it is just one query. The error stated above is raised here, I assume: For example, the search for existing usernames with Lines 90 to 100 in b7c1ff6
A little bit context: Existing usernames are not allowed for participant's names in a public polls. For this a search for the requested (public) username is initiated. The complete search method (also for groups i.e.) can be found here: polls/lib/Service/SystemService.php Lines 132 to 185 in b7c1ff6
|
I found the issue. It comes from a custom group extension. However, I'm wondering if we need to fix something on both ends. First, obviously, we have an performance issue with our group back end. But I'm also wondering why the groups should checked. Can groups vote? Is there a chance of mixing things up? Because I can vote in a publicly shared poll by entering a name "Test" and then later create a group named "Test". This worked without any issues. In the end this function is only leaking information about existing user and group names, isn't it? As far as I can tell I would simply drop the comparison and use the use input as is. |
Group names are reserved names of the site and therefore forbidden. |
What happens if a user participates as "Test" and later a group "Test" is created? Nothing is preventing this right now. IMHO this results in undefined behavior. I think it would be better to totally isolate poll participant display names from user & group names. |
Yes, right, but at the moment it is as it is. Needs some massive change for that. |
Alright, then this issue can probably be closed. |
Not sure, if the initial problem is solved. I was just regarding to the group name check. |
The initial problem is not a problem of the Polls app but of an internal app (that provides an additional group back end), that is not really as fast as it should be. IMHO the issue could be kept open as a reminder that things do not yet add up (for example that it is not allowed to name a polls participants as a group, but adding groups with names of polls participants is okay). But if you (the developers) do not consider this relevant, then it can be closed. |
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. |
What went wrong, what did you observe?
When i share a poll publicly and enter a user name the interfaces queries for existing user names until it breaks. in my browser meanwhile i get a green check mark that i can use that user name. when i submit my user name to start polling the dialog windows stays afloat the poll and i can not enter my polling options.
What did you expect, how polls should behave instead?
fin
What steps does it need to replay this bug?
1.Publicly share a poll (see first paragraph)
Installation method
Installed/updated from the appstore (Apps section of your site)
Installation type
First time installation
Affected polls version
5.0.0
Which browser did you use, when experiencing the bug?
Other browser
(112 versions on both browsers, no plugins installed)
Which System did you use, when experiencing the bug?
Other OS
No response
Add your browser log here
$ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
Additional client environment information
No response
NC version
Nextcloud 25 (Nextcloud Hub 3)
Other Nextcloud version
No response
PHP engine version
PHP 8.1
Other PHP version
No response
Database engine
MariaDB
Database Engine version or other Database
10.5.18
Which user-backends are you using?
Add your nextcloud server log here
when submitting the user name:
List of activated Apps
Nextcloud Signing status
Additional Information
I use polls on a compare able setup but with ldap on its backend.
(dont mind the unredacted IP addresses, its a vpn anyway.)
The text was updated successfully, but these errors were encountered: