You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Ramya (JIRA)" <ji...@apache.org> on 2019/05/14 09:49:00 UTC

[jira] [Commented] (OLINGO-1276) Client incorrectly parses stream with left brace in JSON string

    [ https://issues.apache.org/jira/browse/OLINGO-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16839265#comment-16839265 ] 

Ramya commented on OLINGO-1276:
-------------------------------

The attached patch file works fine for all of the above mentioned scenarios.
I have applied the patch file along with the tests as part of the commit https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=bf12185b5922ccd254dbc7687b5baad187492025

Kindly reopen if issue still persists.

> Client incorrectly parses stream with left brace in JSON string
> ---------------------------------------------------------------
>
>                 Key: OLINGO-1276
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1276
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.4.0
>            Reporter: Kristof Lievens
>            Priority: Blocker
>             Fix For: (Java) V4 4.7.0
>
>         Attachments: 0001-fixes-issue-when-JSON-stream-contains-a-left-brace-i.patch
>
>
> When a JSON string contains a '{' character, the response stream is incorrectly parsed into OData entities by the org.apache.olingo.client.api.domain.ClientEntitySetIterator class.
> Please check the patch file in attachment with a fix for the issue.
> This bug has already been reported in February 2015, see [https://github.com/apache/olingo-odata4/pull/4.] I didn't notice the fix linked to this Github issue before I started coding my own fix, but it looks pretty similar.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)