Defective list synchronization approach in OaiPmhRepositoryServlet

Steps to reproduce

Metadata providers are kept in a list synchronized like this Collections.synchronizedList(new ArrayList<MetadataProvider>()). But the list is passed on where it is being iterated over unsynchronized. This will crash when the list is being modified while iterating over it. Use a CopyOnWriteArrayList here.

Status

Assignee

Lukas Rohner

Reporter

Christoph Driessen

Severity

Non Functioning

Tags (folksonomy)

Components

Fix versions

Affects versions

1.4.0

Priority

Minor
Configure