Treatment of same query option in multiple "spellings"

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • V4.01_CSD02
    • Affects Version/s: V4.01_CSD01
    • Component/s: URL Conventions
    • None
    • Environment:

      Applied

    • Hide

      In Section 5.1, System Query Options], of URL Conventions, change:

      "The same system query option MUST NOT be specified more than once for any resource."

      to:

      "The same system query option, irrespective of casing or whether or not it is prefixed with "$", MUST NOT be specified more than once for any resource."

      Show
      In Section 5.1, System Query Options], of URL Conventions, change: "The same system query option MUST NOT be specified more than once for any resource." to: "The same system query option, irrespective of casing or whether or not it is prefixed with "$", MUST NOT be specified more than once for any resource."
    • Show
      https://www.oasis-open.org/committees/download.php/60255/odata-v4.01-wd02-part2-url-conventions-2017-03-10.docx

      V4.01 allows to omit the $ prefix for system query options and makes the query option name case-insensitive.

      How should servers react if a request contains e.g. $top=5&Top=10

      Should the request be rejected as the same (logical) query option appears twice, or should it succeed and $top is preferred over Top?

      What if it contains top=5&TOP=10?

            Assignee:
            Unassigned
            Reporter:
            handl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: