Neelesh Shastry created OLINGO-1631: ---------------------------------------
Summary: JsonEntityDeserializer doesn't escape URLs correctly, failing URI.create Key: OLINGO-1631 URL: https://issues.apache.org/jira/browse/OLINGO-1631 Project: Olingo Issue Type: Bug Components: odata4-client Affects Versions: (Java) V4 4.8.0 Reporter: Neelesh Shastry When a response body has @odata.id and the value is a URL with special characters, parsing fails when we do r{{{}esponse.getBody().getEntities().{}}} Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 85: https://server/path/ODataV4/My_Customers('CULY]') at java.base/java.net.URI.create(URI.java:883) at org.apache.olingo.client.core.serialization.JsonEntityDeserializer.doDeserialize(JsonEntityDeserializer.java:102) at org.apache.olingo.client.core.serialization.JsonEntitySetDeserializer.doDeserialize(JsonEntitySetDeserializer.java:100) at org.apache.olingo.client.core.serialization.JsonDeserializer.toEntitySet(JsonDeserializer.java:417) at org.apache.olingo.client.core.serialization.ClientODataDeserializerImpl.toEntitySet(ClientODataDeserializerImpl.java:90) at org.apache.olingo.client.core.communication.request.retrieve.ODataEntitySetRequestImpl$ODataEntitySetResponseImpl.getBody(ODataEntitySetRequestImpl.java:83) at org.apache.olingo.client.core.communication.request.retrieve.ODataEntitySetRequestImpl$ODataEntitySetResponseImpl.getBody(ODataEntitySetRequestImpl.java:68) -- This message was sent by Atlassian Jira (v8.20.10#820010)