Vladimir Mikhaylenko created OLINGO-1578:
--------------------------------------------
Summary: The error messages from Olingo V2 expose implementation
details
Key: OLINGO-1578
URL: https://issues.apache.org/jira/browse/OLINGO-1578
Project: Olingo
Issue Type: Bug
Components: odata2-core
Affects Versions: V2 2.0.12
Reporter: Vladimir Mikhaylenko
Attachments: 0001-Removed-Gson-messages-from-the-error-response.patch
Our customers discovered that malformed JSON payload causes CAP to expose the
details of the implementation to end uses.
The offending message is here
[https://github.com/google/gson/blob/503c20bb392e10fd6ffa9a12afdc33d2ba2d2c38/gson/src/main/java/com/google/gson/stream/JsonReader.java#L1412]
Olingo wraps all the exceptions under EntityProviderException with message
reference EXCEPTION_OCCURED.
To filter that on CAP side, we need more specific message reference.
I have attached suggested changes as a patch.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)