[ https://issues.apache.org/jira/browse/OLINGO-1472?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
mibo updated OLINGO-1472: ------------------------- Fix Version/s: (Java) V4 4.9.0 > Scale="variable", Scale="floating" not supported > ------------------------------------------------ > > Key: OLINGO-1472 > URL: https://issues.apache.org/jira/browse/OLINGO-1472 > Project: Olingo > Issue Type: Bug > Components: odata4-client > Reporter: Heiko Theißen > Assignee: mibo > Priority: Major > Fix For: (Java) V4 4.9.0 > > Attachments: OLINGO-1472.diff > > Time Spent: 0.5h > Remaining Estimate: 0h > > When parsing OData metadata, the Olingo ODataV4 client does not distinguish > between {{Scale="0"}}, {{Scale="variable"}}, {{Scale="floating"}}. See > [source code in master > branch|https://github.com/apache/olingo-odata4/blob/master/lib/client-core/src/main/java/org/apache/olingo/client/core/edm/xml/ClientCsdlProperty.java#L72]. > However, these values have different meanings, see the [OData > spec|https://docs.oasis-open.org/odata/odata-csdl-xml/v4.01/os/odata-csdl-xml-v4.01-os.html#sec_Scale]. > Therefore a client application must be able to distinguish between them. > Currently, the Olingo client parses a decimal value with variable scale like > {{"Amount": "12.34"}} into {{"Amount": 12}}, i.e., it cuts off the decimal > places. -- This message was sent by Atlassian Jira (v8.20.1#820001)