kevinjqliu commented on code in PR #13741:
URL: https://github.com/apache/iceberg/pull/13741#discussion_r2305236560
##########
core/src/main/java/org/apache/iceberg/rest/auth/OAuth2Manager.java:
##########
@@ -273,15 +273,15 @@ protected OAuth2Util.AuthSession
newSessionFromTokenResponse(
}
private static void warnIfDeprecatedTokenEndpointUsed(Map<String, String>
properties) {
- if (usesDeprecatedTokenEndpoint(properties)) {
+ if (!properties.containsKey(OAuth2Properties.OAUTH2_SERVER_URI)) {
String credential = properties.get(OAuth2Properties.CREDENTIAL);
String initToken = properties.get(OAuth2Properties.TOKEN);
boolean hasCredential = credential != null && !credential.isEmpty();
boolean hasInitToken = initToken != null;
if (hasInitToken || hasCredential) {
LOG.warn(
"Iceberg REST client is missing the OAuth2 server URI
configuration and defaults to {}/{}. "
- + "This automatic fallback will be removed in a future Iceberg
release."
+ + "This automatic fallback will be removed in a future Iceberg
release. "
Review Comment:
nit: is this extra space required?
```suggestion
+ "This automatic fallback will be removed in a future
Iceberg release."
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]