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

Cast type (typeFilterOnCollection) not taken into account while expanding a collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • (Java) V4 4.2.0
    • (Java) V4 4.3.0
    • odata4-server
    • None
    • Patch

    Description

      When user want to expand collection of entities (e.g. 'Products') with casting type of this collection to some subtype (''FeaturedProduct) and use property from this subtype as navigation property to be expanded ('Advertisement'), error occurs because of not taking into account this subtype in ExpandParser.java code but use only superType instead.

      Example url:

      http://.../OData.svc/Categories(1)?$expand=Products/ODataDemo.FeaturedProduct($expand=Advertisement)

      I attach a patch with proposal fix to illustrate what is going on and how it should work in my opinion.

      Attachments

        Activity

          People

            chrisam Christian Amend
            jabomi Jacek Miłaczewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: