Skip to content

Support all RFC3986 § 2.2 reserved characters and § 2.1 percent-encoding uppercase and lowercase #73

@shaunco

Description

@shaunco

(originally written up as balena-io/pinejs#693, which was closed in favor of this)

RFC3986 section 2.2 Reserved Characters specifies that all of :/?#[]@*+,;= are reserved. The implementations of this in both the JavaScript encodeURIComponent and go's net/url package apply this pretty strictly. As such, this library should properly handle URI encoded forms of all OData expected characters - specifically, +/*,=;@:()'. Currently this library seems to only handle + and '. Note that ? and & can be ignored as they are only used in the URI query string parsing ?key=value&key=value and not expected in OData.

Additionally, RFC3986 section 2.1 Percent-Encoding says:

The uppercase hexadecimal digits 'A' through 'F' are equivalent to the lowercase digits 'a' through 'f', respectively.

So this library also needs to support both the uppercase and lowercase percent encoded forms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions