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

Cannot filter on derived properties - startTypeFilter in MemberImpl is ignored

    XMLWordPrintableJSON

Details

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

    Description

      According to Addressing Derived Types user should be able to filter on derived field
      Example:
      http://host/service/Customers?$filter=Model.VipCustomer/PercentageOfVipPromotionProductsOrdered gt 80

      Information about type (e.g. Model.VipCustomer) is stored in field startTypeFilter(in MemberImpl), but it is not passed to ExpressionVisitor in accept method. ExpressionVisitor get only path. startTypeFilter is ignored, so it can't be used in visitMember method.

      Suggested changes - patch in attachment.

      Attachments

        Activity

          People

            chrisam Christian Amend
            jacek.sputowski Jacek Sputowski
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: