Skip to content

Concurrency Issue in YarepGroup when adding new member #7

Description

@baszero

For websites with high traffic the following method can cause concurrency issues (resulting in corrupt group.xml) as it is not synchronized:

public void addMember(Item item) throws AccessManagementException {

Possible solution:
The variable memberUserIDs should be created like this:

List<String> memberUserIDs = Collections.synchronizedList(new ArrayList<String>());

I suspect there are many locations in the Yanel code with similar concurrency issues...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions