[
https://issues.apache.org/jira/browse/OLINGO-1232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356729#comment-16356729
]
Ramya commented on OLINGO-1232:
-------------------------------
This is fixed in the deserializer class ClientCsdlRecord.
This is fixed as part of the commit
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=commit;h=213a8c06832affbc6e70f18a974adda8015bc86a
> OData V4 : Metadata parsing goes into an infinite loop when JsonToken becomes
> null
> ----------------------------------------------------------------------------------
>
> Key: OLINGO-1232
> URL: https://issues.apache.org/jira/browse/OLINGO-1232
> Project: Olingo
> Issue Type: Bug
> Components: odata4-client
> Affects Versions: (Java) V4 4.4.0
> Reporter: Ramya
> Priority: Major
>
> When the metadata file looks like
> <?xml version="1.0" encoding="utf-8"?>
> <edmx:Edmx Version="4.0"
> xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx">
> <edmx:DataServices>
> <Schema Namespace="caps.products.CatalogService"
> Alias="caps.products.CatalogService"
> xmlns="http://docs.oasis-open.org/odata/ns/edm">
> <Annotations Target="caps.products.CatalogService.Products">
> <Annotation Term="UI.LineItem">
> <Collection>
> <Record Type="UI.DataField">
> <PropertyValue Property="Value" Path="image"/>
> <Annotation Term="UI.Importance"
> EnumMember="UI.ImportanceType/High" />
> </Record>
> </Collection>
> </Annotation>
> </Annotations>
> </Schema>
> </edmx:DataServices>
> </edmx:Edmx>
> The jackson parser parses the entire document correctly. All artifacts of
> edmx object are seen properly but doesn't exit the program. This is happening
> because the JsonToken is null and this does not indicate the end object.
> This can be solved by using the method hasCurrentToken(). If currentToken is
> null this evaluates to false.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)