Skip to content

Add RFC 3986 support to the 'unix:' name resolver.#12659

Open
jdcormie wants to merge 4 commits intogrpc:masterfrom
jdcormie:grpc-uri-uds
Open

Add RFC 3986 support to the 'unix:' name resolver.#12659
jdcormie wants to merge 4 commits intogrpc:masterfrom
jdcormie:grpc-uri-uds

Conversation

@jdcormie
Copy link
Member

No description provided.

Consider:
URI uri = URI.create("file://?#");

// These getters distinguish null from empty, as documented.
assertThat(uri.getPath()).isEqualTo("");
assertThat(uri.getQuery()).isEqualTo("");
assertThat(uri.getFragment()).isEqualTo("");

// These getters do not, unfortunately.
assertThat(uri.getAuthority()).isNull();
assertThat(uri.getHost()).isNull();
https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.3 says
  port = *DIGIT

and #section-6.2.3 explicitly lists http://example.com:/ as a valid URI.

Behavior now matches java.net.URI.

This comment was marked as duplicate.

@jdcormie jdcormie requested a review from ejona86 February 17, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments