Skip to content

Commit

Permalink
Core: Fix warning message for deprecated OAuth2 server URI (apache#11694
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ebyhr authored and nastra committed Dec 9, 2024
1 parent 66fde30 commit b72ff96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ public void initialize(String name, Map<String, String> unresolved) {
&& (hasInitToken || hasCredential)
&& !PropertyUtil.propertyAsBoolean(props, "rest.sigv4-enabled", false)) {
LOG.warn(
"Iceberg REST client is missing the OAuth2 server URI configuration and defaults to {}{}. "
"Iceberg REST client is missing the OAuth2 server URI configuration and defaults to {}/{}. "
+ "This automatic fallback will be removed in a future Iceberg release."
+ "It is recommended to configure the OAuth2 endpoint using the '{}' property to be prepared. "
+ "This warning will disappear if the OAuth2 endpoint is explicitly configured. "
+ "See https://github.com/apache/iceberg/issues/10537",
props.get(CatalogProperties.URI),
RESTUtil.stripTrailingSlash(props.get(CatalogProperties.URI)),
ResourcePaths.tokens(),
OAuth2Properties.OAUTH2_SERVER_URI);
}
Expand Down

0 comments on commit b72ff96

Please sign in to comment.