Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1578

The error messages from Olingo V2 expose implementation details

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • V2 2.0.12
    • None
    • odata2-core
    • None

    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. 

      Attachments

        Activity

          People

            mirbo mibo
            niemda Vladimir Mikhaylenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: