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

Cannot Filter on Navigation Property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • V2 2.0.0
    • V2 2.0.8
    • odata2-jpa
    • None

    Description

      We are receiving an error when we try to filter on a navigation property. In our solution we have a Notification entity and a User entity, we would like to retrieve a specific Notification but only if it is linked to the requesting user. This would involve an ODATA request which filters on both the UserId and the NotificationId. An example of the URL we are invoking is:

      dspplatform.svc/Notifications?$filter=NotificationId%20eq%204%20and%20UserDetails/UserId%20eq%202

      This returns the following error:
      org.apache.olingo.odata2.core.edm.provider.EdmNavigationPropertyImplProv cannot be cast to org.apache.olingo.odata2.api.edm.EdmProperty

      Can you please advise on how to perform filters on a Navigation property as we need this as part of our core functionality?

      Attachments

        1. olingo-odata2-parent.patch
          8 kB
          Alex Key
        2. olingo-414-patch.diff
          2 kB
          mibo
        3. olingo-414-exception.diff
          1 kB
          mibo

        Issue Links

          Activity

            People

              mirbo mibo
              carrollsdc999 Simon Carroll
              Votes:
              8 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: