You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Paul Austin (Jira)" <ji...@apache.org> on 2022/02/03 17:16:00 UTC
[jira] [Created] (OLINGO-1558) Race condition in ODataHandlerImpl handles the wrong request
Paul Austin created OLINGO-1558:
-----------------------------------
Summary: Race condition in ODataHandlerImpl handles the wrong request
Key: OLINGO-1558
URL: https://issues.apache.org/jira/browse/OLINGO-1558
Project: Olingo
Issue Type: Bug
Components: odata4-server
Affects Versions: (Java) V4 4.8.0
Reporter: Paul Austin
This critical bug affects the following class.
org.apache.olingo.server.core.ODataHandlerImpl
It stores the uriInfo in a field (so that the error reporting finds it).
What happens under slight load is that there is a race condition in the processInternal method that the URI is parsed and set. Then another thread would change that before the ODataDispatcher is called. This results in the WRONG request being processed and would return data that wasn't requested.
Change uriInfo to a local variable and then set it as a field on the ODataRequest so that the error handling could get it from the request.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)