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

Whitespace in URLs must be percent-encoded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.0_WD01
    • Fix Version/s: V4.0_WD01
    • Component/s: ABNF
    • Labels:
      None
    • Environment:

      [Proposed]

      Description

      Some ABNF construction rules for URL constituents allow whitespace, e.g. rules contributing to the $filter system query option. Currently these rules use the WSP sub-rule which allows the space and horizontal-tab character. These characters are not allowed in URLs and must be percent-encoded.

      So we need to either

      • redefine the whitespace rule to
        WSP = "%20" / "%09"

      or

      • define a rule for precent-encoded whitespace
        peWS = "%20" / "%09"
        and use it in URL-relevant rules.

      The latter approach is more explicit and less misleading as the current definition of WSP is a widely used convention

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: