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

Subgroup circular references causes infinite loop #73

Open
1 task done
VeyJulien opened this issue Apr 19, 2024 · 0 comments · May be fixed by #74
Open
1 task done

Subgroup circular references causes infinite loop #73

VeyJulien opened this issue Apr 19, 2024 · 0 comments · May be fixed by #74

Comments

@VeyJulien
Copy link

VeyJulien commented Apr 19, 2024

Bug Report

Prerequisites

  • Did you reproduce the problem on TYPO3 v11.5 LTS?

Description

Hi, I work at GAYA and due to a user group misconfiguration of one of our clients we had some error 500 showing up in our logs. They made a circular reference within their groups which caused infinite loop.
We thought that it could happen to others and that we should suggest a workaround.

Steps to Reproduce

  1. Create the "Group 1" user group.
  2. Create the "Group 2" user group.
  3. Attach the "Group 2" to the "Group 1" subgroup field. my-user-management-circular-reference-group-1
  4. Attach the "Group 1" to the "Group 2" subgroup field. my-user-management-circular-reference-group-2
  5. Attach one of this two groups to a backend user.
  6. Go to /typo3/module/myusermanagement/MyUserManagementUseraccess
  7. Error 500: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/html/web/typo3conf/ext/my_user_management/Classes/Domain/Model/BackendUser.php on line 71

Expected behavior: Processing all groups and subgroups without looping indefinitely.

Actual behavior: Error 500.

Version

7.0.0

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

Successfully merging a pull request may close this issue.

1 participant