Skip to content

xds: Handle empty target URI authorities the same as null.#12728

Open
jdcormie wants to merge 3 commits intogrpc:masterfrom
jdcormie:grpc-uri-xds-2
Open

xds: Handle empty target URI authorities the same as null.#12728
jdcormie wants to merge 3 commits intogrpc:masterfrom
jdcormie:grpc-uri-xds-2

Conversation

@jdcormie
Copy link
Member

Fixes an oversight in #12660 where io.grpc.Uri#getAuthority makes a distinction between xds:///service and xds:/service that java.net.URI never did. XdsNameResolver wants to treat those two "no authority" cases the same but now it must do that for itself.

@jdcormie jdcormie requested a review from shivaspeaks March 24, 2026 22:21
Fixes an oversight in grpc#12660. io.grpc.Uri#getAuthority makes a
distinction between xds:///service and xds:/service but java.net.URI
does not. XdsNameResolver wants to treat those two cases the same.
Copy link
Member

@ejona86 ejona86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorta surprised that checkstyle doesn't complain about having only some params documented in javadoc. But I see what you did, and it seems fair.

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