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

Expand of $level not serialized

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Let's assume there are two entity types A and B. For A the entity set As exists. A has two navigations toChildren, as A builds up an hierarchy, and toB. In this case a client can send GET request like the following:

      .../exampleService/As?$expand=toChildren($level=1;$expand=toB)&$top=1
      

       

      The expected response would look like this

      {
        "@odata.context": ".../exampleService/$metadata#As(toChildren(toB()))",
        "value": [
          {
            ...
            "toChildren": [
              {
                ...
                "toB": {
                  ...
                },         
              },
              {  ...
               "toB": { ... },
              }
            ]
          }
        ]
      } 

      Infect the response does not contain the navigation to B evenso the data are provided

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            grande Oliver Grande

            Dates

              Created:
              Updated:

              Slack

                Issue deployment