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 2022/02/26 10:24:00 UTC

[jira] [Closed] (OLINGO-1472) Scale="variable", Scale="floating" not supported

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

mibo closed OLINGO-1472.
------------------------
    Assignee: mibo

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