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

Clarify meaning of trailing spaces in $search query option

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: V4.01_ERRATA01
    • Component/s: URL Conventions
    • Labels:
      None
    • Proposal:
      Hide

      The ABNF already allows whitespace between $search= and the search expression which is not considered part of the search expression.

      Also allow trailing whitespace after the search expression, and mention both leading and trailing whitespace in section 5.1.8.1 Search Expressions.

      Show
      The ABNF already allows whitespace between $search= and the search expression which is not considered part of the search expression. Also allow trailing whitespace after the search expression, and mention both leading and trailing whitespace in section  5.1.8.1 Search Expressions .
    • Resolution:
      Show
      https://github.com/oasis-tcs/odata-abnf/pull/105 https://github.com/oasis-tcs/odata-specs/pull/201

      Description

      An implementation team asks how to treat trailing spaces in a $search query option, for example

      GET /Products?$search=blue%20
      

      Should the trailing space be treated as part of the search "word", or should it be ignored?

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: