[ 
https://issues.apache.org/jira/browse/OLINGO-1578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Mikhaylenko updated OLINGO-1578:
-----------------------------------------
    Description: 
Our customers discovered that malformed JSON payload causes CAP to expose the 
details of the implementation to end users. 

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. 

  was:
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. 


> 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
>            Priority: Major
>         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 users. 
> 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)

Reply via email to