[
https://issues.apache.org/jira/browse/OLINGO-1377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
mibo reassigned OLINGO-1377:
----------------------------
Assignee: mibo
> 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)