Uploaded image for project: 'Opencast'
  1. MH-8978

Defective list synchronization approach in OaiPmhRepositoryServlet

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 1.4.0
    • Fix versions: 1.4.0
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Non Functioning
    • Steps to reproduce:
      Hide
      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.
      Show
      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.
    • Tags (folksonomy):

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              lrohner Lukas Rohner
              Reporter:
              cedriessen Christoph Driessen
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases