Skip to content

Commit

Permalink
udpa: clarify URI fragment encoding of directives. (#30)
Browse files Browse the repository at this point in the history
After spending some time looking at RFC3986 and chatting with Louis, it
seems we can support multiple directives in the fragment, but we need to
be very precise on how they are percent encoded.

This patch proposes that we move from having multiple fragments (which
are not allowed in RFC compliant URIs) to a single fragment with
comma-separated percent encoded directives. Comma was selected as it is
an available character in RFC3986 sub-delims, intuitively indicates
separation, and is less likely to appear in URIs (forcing percent
encoding) than other alternatives, e.g. '&' which would appear in most
URIs with context parameters.

Percent encoded directives in URIs should remain fairly readable, for
example udpa://foo#entry=something,alt=udpa://bar/baz&x=y requires no
percent encoding.

Also renamed schema to scheme to match RFC3986.

Signed-off-by: Harvey Tuch <[email protected]>
  • Loading branch information
htuch authored Jun 29, 2020
1 parent ca580c4 commit efcf912
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 450 deletions.
195 changes: 0 additions & 195 deletions go/udpa/core/v1/collection_resource.pb.go

This file was deleted.

Loading

0 comments on commit efcf912

Please sign in to comment.