org.json.simple.parser.JSONParser is not thread safe

Steps to reproduce

Steps to reproduce:
1. have a slow pc running opencast
2. fire off multiple parallel requests to endpoint which parses Strings to JSONObjects (e.g. conflict checking, create events)

Actual Results:
Endpoint is unable to parse String to JSONObject, throwing various exceptions including ArrayIndexOutOfBoundsException and NoSuchElementException.

Expected Results:
Endpoint should parse String to JSONObject and proceed with method.

Workaround (if any):
have a fast pc run opencast


Stephen Marquard
October 19, 2017, 1:41 PM

PR has been merged into 3.x.

Fixed and reviewed
Your pinned fields
Click on the next to a field label to start pinning.


duncan smith


duncan smith


Incorrectly Functioning Without Workaround