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

This is an alternative PR for DS-4487 that also include test to proof the issue and solution #2750

Merged
merged 3 commits into from
Apr 21, 2020

Conversation

Micheleboychuk
Copy link
Contributor

References

Fixes bug described here: https://jira.lyrasis.org/browse/DS-4487
Related to #2719 (where the bug was accidentally introduced)

Description

Fixes ConcurrentModificationException by ensuring that the List of metadata in getPermissionFilteredMetadata() is not modified while looping through its values.

See Ticket for how to reproduce this bug easily on the /api/core/collections endpoint.

Copy link
Member

@tdonohue tdonohue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks great to me, @Micheleboychuk . Thanks for adding this alternative, as I agree it's a better approach than my quick fix in #2749 .

The code here looks good. I found a very minor problem in the ITs, but I corrected it myself (see that latest commit). Once Travis approves again, I think this is ready to merge.

@tdonohue tdonohue merged commit 84d49a2 into DSpace:master Apr 21, 2020
@tdonohue tdonohue added this to Needs Reviewers Assigned in DSpace 7 Beta 3 via automation Jun 30, 2020
@tdonohue tdonohue moved this from Needs Reviewers Assigned to Done in DSpace 7 Beta 3 Jun 30, 2020
@tdonohue tdonohue added this to the 7.0beta3 milestone Jun 30, 2020
@Micheleboychuk Micheleboychuk deleted the DS-4487 branch February 22, 2022 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants