ABNF rules for headers list percent-encoded whitespace

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

      [Proposed]

    • 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
    • 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

      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.

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

              Created:
              Updated:
              Resolved: