Octavian Krody created OLINGO-1466: -------------------------------------- Summary: Cannot read edmx with decimal scale variable Key: OLINGO-1466 URL: https://issues.apache.org/jira/browse/OLINGO-1466 Project: Olingo Issue Type: Bug Components: odata4-server Affects Versions: (Java) V4 4.7.1 Reporter: Octavian Krody
{code:java} odata.createServiceMetadata( new MetadataParser() .referenceResolver(null) .buildEdmProvider(new InputStreamReader(new BufferInputStream(input))), Collections.emptyList() );{code} Where input is: {code:java} <?xml version="1.0" encoding="utf-8"?> <edmx:Edmx Version="4.0" xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"> <edmx:DataServices> <Schema Namespace="BalanceStatements.Service" xmlns="http://docs.oasis-open.org/odata/ns/edm"> <EntityContainer Name="EntityContainer"> <EntitySet Name="Statements" EntityType="BalanceStatements.Service.Statements"/> </EntityContainer> <EntityType Name="Statements"> <Key> <PropertyRef Name="pdfId"/> <PropertyRef Name="customer"/> <PropertyRef Name="contract"/> </Key> <Property Name="pdfId" Type="Edm.String" Nullable="false"/> <Property Name="customer" Type="Edm.String" Nullable="false"/> <Property Name="contract" Type="Edm.String" Nullable="false"/> <Property Name="start" Type="Edm.String"/> <Property Name="end" Type="Edm.String"/> <Property Name="openingFunds" Type="Edm.Decimal" Scale="variable"/> <Property Name="closingFunds" Type="Edm.Decimal" Scale="variable"/> <Property Name="currency" Type="Edm.String"/> </EntityType> </Schema> </edmx:DataServices> </edmx:Edmx>{code} Produces: {code:java} java.lang.NumberFormatException: For input string: "variable" {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)