Skip to content

Conversation

@mtodat
Copy link

@mtodat mtodat commented Aug 12, 2025

Addressing an issue that clients have with non-browser OAuth flows.

Fix NullPointerException when tenant URL lacks scheme. Handle both URLs with schemes (https://hostname.com) and without (hostname.com). Add validation to ensure hostname is not null or empty before gRPC channel creation. Add logging to help debug tenant URL parsing issues.

Addressing an issue that clients have with non-browser OAuth flows.

Fix NullPointerException when tenant URL lacks scheme
Handle both URLs with schemes (https://hostname.com) and without (hostname.com)
Add validation to ensure hostname is not null or empty before gRPC channel creation
Add logging to help debug tenant URL parsing issues
@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @mtodat to sign the Salesforce Inc. Contributor License Agreement.

Comment on lines +149 to +150
val tenantUrl = tokenProcessor.getDataCloudToken().getTenantUrl();
log.info("Creating gRPC channel for tenant URL: {}", tenantUrl);
Copy link
Contributor

Choose a reason for hiding this comment

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

incorrect indentation. Please run the code formatter

Copy link
Author

Choose a reason for hiding this comment

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

WAHH! Github web edit!!! Now I need to set up my personal account in my git workflow after all

Copy link
Contributor

Choose a reason for hiding this comment

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

please provide a proper commit message, in particular also providing details in which context we get the prefixed URLs instead of just the host name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants