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

MetaDataParser unable to handle Terms with more than one value for "AppliesTo" Attribute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.1.0
    • (Java) V4 4.2.0
    • odata4-server
    • None

    Description

      Has problems dealing with Terms of the kind mentioned below that has "AppliesTo" attribute set to more than one type
      <Term Name="ResourcePath" Type="Edm.String" AppliesTo="EntitySet Singleton ActionImport FunctionImport">
      </Term>

      Suggestions to fix: [In method private CsdlTerm readTerm(StartElement element]
      if (attr(element, "AppliesTo") != null)

      { //term.setAppliesTo(Collections.singletonList(attr(element, "AppliesTo"))); term.setAppliesTo(Arrays.asList((attr(element, "AppliesTo")).split("\\s+"))); }

      Attachments

        Activity

          People

            rareddy Ramesh Reddy
            nvsreddy VIJAYASIMHA R NAGA
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: