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

Odata singletons are not retrieved when parsing TripPin Odata service using Odata v4 libs.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • (Java) V4 4.8.0
    • (Java) V4 4.8.0
    • odata4-client
    • None

    Description

       

      We are trying to read metadata for https://services.odata.org/V4/(S(qumvkqavql1jwrawmicd45j1))/TripPinServiceRW/$metadata

      using below snippet of code. 

       

      ODataClient client = ODataClientFactory.getClient();
      this.edm = client.getReader().readMetadata(metadataStream);
      

      As you can see above service has a 'Singleton" named "me".   When we try to retrieve the singletons from EntityContainer we get nothing(as shown below).

      edm.getSchemas().stream()
       .map(EdmSchema::getEntityContainer)
       .filter(Objects::nonNull).map(EdmEntityContainer::getSingletons)
      .flatMap(Collection::stream)
      .collect(Collectors.toList());

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            arulprakas Arul
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: