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 16:46:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16912503#comment-16912503 ] 

mibo commented on OLINGO-1377:
------------------------------

Related to this [section in the OData v4.01 spec|https://docs.oasis-open.org/odata/new-in-odata/v4.01/cn03/new-in-odata-v4.01-cn03.html#sec_NewDecimalwithFloatingScale].

> 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
>          Time Spent: 0.5h
>  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)