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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions