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

Dynamic properties are not allowed as function parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: ABNF
    • Labels:
      None

      Description

      OData-URL, section 5.1.1.15 allows as function parameters properties of the entity addressed by the resource path. But this does not work for dynamic properties, because ABNF disallows

      $compute=concat(year(Date),'-05-01') as MayDay
      &$filter=Special.IsSunday(Date=MayDay)
      

      See this failed test case.

        Attachments

          Activity

          Hide
          handl Ralf Handl added a comment -

          The ABNF allows all kinds of properties as function parameters, and declaring MayDay as a primitiveNonKeyProperty in the test case constraints makes the parser accept the expression.

          Note: the parser is dumb and needs the hints in the test case constraints to decide what a match for odataIdentifier actually "means".

          Propose to close this issue without action.

          Show
          handl Ralf Handl added a comment - The ABNF allows all kinds of properties as function parameters, and declaring MayDay as a primitiveNonKeyProperty in the test case constraints makes the parser accept the expression. Note: the parser is dumb and needs the hints in the test case constraints to decide what a match for odataIdentifier  actually "means". Propose to close this issue without action.

            People

            • Assignee:
              Unassigned
              Reporter:
              heiko.theissen Heiko Theissen
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: