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

Client-Proxy: expanding to a contained entity set results in an error

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

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

    Description

      Expanding a navigation property which navigates to a contained entity set results in an exception when accessing the navigation property.
      AbstractStructuredInvocationHandler assumes that when a ClientInlineEntitySet is retrieved from the server that the navigation property will return an EntityCollection, but for contained entity sets the navigation property will return an AbstractEntitySet.
      I see two possibilities:
      1. The user has to create a second getter for the navigation property which returns an EntityCollection. The drawback is that the caller has to know how the entity was retrieved and then call the appropriate getter.
      2. The returned AbstractEntitySet will contain the inline retrieved entities. Then there is the questions how some methods of AbstractEntitySet behave. At least some of the methods like count or execute should not make a server request but operate on the already retrieved collection

      Attachments

        Activity

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

          People

            chrisam Christian Amend
            frederik.zimmer Frederik Zimmer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment