Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1466

Cannot read edmx with decimal scale variable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • (Java) V4 4.7.1
    • None
    • odata4-server
    • None

    Description

       

      odata.createServiceMetadata(
        new MetadataParser()
           .referenceResolver(null)
           .buildEdmProvider(new InputStreamReader(new BufferInputStream(input))),   Collections.emptyList()
      );

      Where input is:

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

      Produces:

      java.lang.NumberFormatException: For input string: "variable"
      

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            krotz Octavian Krody
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: