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

ABNF rules for headers list percent-encoded whitespace

    XMLWordPrintable

    Details

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

      [Proposed]

    • Proposal:
      Hide

      Define special separator rules for header values (OWS is only used in headers, and "bad whitespace" is only used surrounding the EQ sign):

      OWS = *( SP / HTAB ) ; "optional" whitespace
      BWS-h = *( SP / HTAB ) ; "bad" whitespace in header values
      EQ-h = BWS-h EQ BWS-h

      Use these in header-related rules, e.g.:

      callbackPreference = "odata.callback" OWS ";" OWS "url" EQ-h DQUOTE URI DQUOTE

      Show
      Define special separator rules for header values (OWS is only used in headers, and "bad whitespace" is only used surrounding the EQ sign): OWS = *( SP / HTAB ) ; "optional" whitespace BWS-h = *( SP / HTAB ) ; "bad" whitespace in header values EQ-h = BWS-h EQ BWS-h Use these in header-related rules, e.g.: callbackPreference = "odata.callback" OWS ";" OWS "url" EQ-h DQUOTE URI DQUOTE
    • Resolution:
      Show
      https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/ABNF/odata-abnf-construction-rules.txt?rev=517 https://tools.oasis-open.org/version-control/browse/wsvn/odata/trunk/spec/ABNF/odata-abnf-testcases.xml?rev=517

      Description

      Section 8. Header values re-uses punctuation rules OWS and BWS that were intended for raw URLs and thus allow percent-encoded spaces and tabs. Within headers these are not valid.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: