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

Browser hangs due to infinite loop when editing groups #3257

Open
jlipka opened this issue Aug 22, 2024 · 4 comments · May be fixed by #3585
Open

Browser hangs due to infinite loop when editing groups #3257

jlipka opened this issue Aug 22, 2024 · 4 comments · May be fixed by #3585
Assignees
Labels
affects: 8.x Issue impacts 8.x releases authorization related to authorization, permissions or groups bug claimed: Atmire Atmire team is working on this issue & will contribute back high priority performance / caching Related to performance, caching or embedded objects

Comments

@jlipka
Copy link

jlipka commented Aug 22, 2024

Describe the bug

In DSpace v8, there is a bug when editing (access control) groups under certain circumstances (see steps to reproduce). As a result, the browser hangs due to an infinite loop and the target page is never reached.

To Reproduce

  1. Login as admin
  2. Go to "EDIT > COLLECTION".
  3. Select any collection - e.g. "Statistics > Books"
  4. Click on "Assign Roles"
  5. Click on any link to edit a group -- if none exists, create one using the UI buttons, in my case on "sandbox.dspace.org" the group is called "COLLECTION_7f052d6e-f7f7-4661-8347-701016969365_WORKFLOW_ROLE_editor".
  6. Scroll down to the last section called "Groups" and click any link in the paginated table, for example, the "Administrator" item.
  7. Now an endless loop starts, the browser hangs after a while and the UI gets stuck, the target link is never reached

While debugging or logging on the console, you can see (at least) in this line -

- that this function is called in an infitine loop.

Other click sequences do not necessarily lead to the problem.

Expected behavior

The click on the link should not lead to an infinite loop.

@jlipka jlipka added bug needs triage New issue needs triage and/or scheduling labels Aug 22, 2024
@tdonohue tdonohue added performance / caching Related to performance, caching or embedded objects affects: 8.x Issue impacts 8.x releases authorization related to authorization, permissions or groups help wanted Needs a volunteer to claim to move forward high priority and removed needs triage New issue needs triage and/or scheduling labels Aug 27, 2024
@tdonohue
Copy link
Member

Moving this to the maintenance board & flagging as high priority. I have not verified the behavior myself, but it sounds like a bug. Someone should also verify whether the same bug appears in 7.6.x or not.

@amgciadev
Copy link
Contributor

Hi, I've replicated the issue in a 8.x instance, and can confirm that this does not happen in a 7.6.2 instance.

@alexandrevryghem
Copy link
Member

Atmire would like to claim this

@tdonohue tdonohue added claimed: Atmire Atmire team is working on this issue & will contribute back and removed help wanted Needs a volunteer to claim to move forward labels Sep 6, 2024
@tdonohue
Copy link
Member

tdonohue commented Sep 6, 2024

Thanks @alexandrevryghem ! Assigned to you

@alexandrevryghem alexandrevryghem linked a pull request Oct 29, 2024 that will close this issue
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: 8.x Issue impacts 8.x releases authorization related to authorization, permissions or groups bug claimed: Atmire Atmire team is working on this issue & will contribute back high priority performance / caching Related to performance, caching or embedded objects
Projects
Status: 🏗 In Progress
Development

Successfully merging a pull request may close this issue.

4 participants