olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OLINGO-1232) OData V4 : Metadata parsing goes into an infinite loop when JsonToken becomes null
Date Thu, 08 Feb 2018 09:43:00 GMT

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

Ramya resolved OLINGO-1232.
---------------------------
    Resolution: Fixed

> 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)

Mime
View raw message