You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "mibo (Jira)" <ji...@apache.org> on 2019/08/21 17:05:00 UTC

[jira] [Updated] (OLINGO-1377) Type Facet Scale does not parse "floating" value

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

mibo updated OLINGO-1377:
-------------------------
    Fix Version/s: (Java) V4 4.7.0

> Type Facet Scale does not parse "floating" value  
> --------------------------------------------------
>
>                 Key: OLINGO-1377
>                 URL: https://issues.apache.org/jira/browse/OLINGO-1377
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata4-client
>    Affects Versions: (Java) V4 4.5.0
>            Reporter: Devansh Soni
>            Assignee: mibo
>            Priority: Major
>             Fix For: (Java) V4 4.7.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> I am facing issues retrieving metadata from a OData 4.01 service using Olingo 4.5.0 client. 
> The error I got was java.lang.IllegalArgumentException: Could not parse as Edmx document
> Caused by: java.lang.NumberFormatException: For input string: "floating"
> As I further debugged into it, It seems to be coming from this line in [ClientCsdlProperty.java|https://github.com/apache/olingo-odata4/blob/405fb760886c5c21166981e0469082b191e98fec/lib/client-core/src/main/java/org/apache/olingo/client/core/edm/xml/ClientCsdlProperty.java#L72]
>  
> {code:java}
> property.setScale("variable".equalsIgnoreCase(scale) ? 0 : Integer.valueOf(scale)); 
> {code}
> It seems that OData 4.01 services support the value "floating", so Olingo should support it as well.
>  
> [OData doc |[http://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/cs01/odata-csdl-xml-v4.01-cs01.html#sec_Scale]] 
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)