Uploaded image for project: 'OASIS Open Data Protocol (OData) TC'
  1. OASIS Open Data Protocol (OData) TC
  2. ODATA-1128

Clarify function imports in $filter and $orderby

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: V4.01_CSD03
    • Fix Version/s: V4.01_CS01
    • Component/s: Protocol
    • Labels:
      None
    • Environment:

      Applied/Approved/Closed

      Description

      Section 11.5.3.1 Invoking a Function - http://docs.oasis-open.org/odata/odata/v4.01/csprd03/part1-protocol/odata-v4.01-csprd03-part1-protocol.html#sec_Functions - states

      Function imports MUST NOT be used inside either the $filter or $orderby system query options.

      This somewhat defeats the purpose of $root, because it might be helpful to

      GET Stuff?$filter=ResponsibleUser eq $root/Me/Username

      where Me is a function import returning a complex value - function import instead of singleton because it is read-only.

        Attachments

          Activity

            People

            • Assignee:
              handl Ralf Handl
              Reporter:
              handl Ralf Handl
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: