Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ All notable changes to this project will be documented in this file.
([#1670]).
- hive: Build against the Hive modules built alongside each other (in the same reactor) rather than the ones published on Maven Central, for `4.2.0`.
Upstream fixed one instance of this for Hive 4.3.0 in [HIVE-29827](https://issues.apache.org/jira/browse/HIVE-29827) but there are others. ([#1636]).
- nifi: Backport [NIFI-16431](https://issues.apache.org/jira/browse/NIFI-16431) into `2.12.0` and `2.9.0` ([#1686]).

### Removed

Expand Down Expand Up @@ -121,6 +122,7 @@ All notable changes to this project will be documented in this file.
[#1680]: https://github.com/stackabletech/docker-images/pull/1680
[#1681]: https://github.com/stackabletech/docker-images/pull/1681
[#1683]: https://github.com/stackabletech/docker-images/pull/1683
[#1686]: https://github.com/stackabletech/docker-images/pull/1686
[#1689]: https://github.com/stackabletech/docker-images/pull/1689

## [26.7.0] - 2026-07-21
Expand Down
Comment thread
NickLarsenNZ marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ index adb9743819..8242e6c1ff 100644
+ properties.put(OAuth2Properties.TOKEN_EXCHANGE_ENABLED, Boolean.FALSE.toString());
}
}

- final RESTClientProvider restClientProvider = new StandardRESTClientProvider(getLogger());
+ final RESTClientProvider restClientProvider = new StandardRESTClientProvider();
final IcebergFileIOProvider icebergFileIoProvider = context.getProperty(FILE_IO_PROVIDER).asControllerService(IcebergFileIOProvider.class);
Expand All @@ -202,18 +202,18 @@ index afd50c26bf..55174df013 100644
import org.apache.iceberg.rest.auth.AuthSession;
-import org.apache.iceberg.rest.auth.OAuth2Properties;
-import org.apache.nifi.logging.ComponentLog;

import java.util.Map;
import java.util.Objects;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;

/**
* Standard implementation of REST Client Provider supporting configurable Access Delegation
@@ -35,18 +31,6 @@ class StandardRESTClientProvider implements RESTClientProvider {
/** Access Delegation HTTP Request Header added in Apache Iceberg 1.5.0 */
static final String ICEBERG_ACCESS_DELEGATION_HEADER = "X-Iceberg-Access-Delegation";

- private static final Pattern CLIENT_CREDENTIALS_PATTERN = Pattern.compile("^([^:]+):(.+)$");
-
- private static final int CLIENT_ID_GROUP = 1;
Expand All @@ -232,7 +232,7 @@ index afd50c26bf..55174df013 100644
@@ -60,22 +44,6 @@ class StandardRESTClientProvider implements RESTClientProvider {
builder.withHeader(ICEBERG_ACCESS_DELEGATION_HEADER, accessDelegationHeader);
}

- final RESTClient restClient;
-
- if (properties.containsKey(OAuth2Properties.CREDENTIAL)) {
Expand Down Expand Up @@ -359,47 +359,47 @@ index 821386fcf8..1aac505189 100644
+++ b/nifi-extension-bundles/nifi-iceberg-bundle/nifi-iceberg-rest-catalog/src/test/java/org/apache/nifi/services/iceberg/catalog/StandardRESTClientProviderTest.java
@@ -17,10 +17,9 @@
package org.apache.nifi.services.iceberg.catalog;

import org.apache.iceberg.CatalogProperties;
+import org.apache.iceberg.rest.HTTPClient;
import org.apache.iceberg.rest.RESTClient;
import org.apache.iceberg.rest.auth.OAuth2Properties;
-import org.apache.nifi.logging.ComponentLog;
-import org.apache.nifi.util.MockComponentLog;
import org.junit.jupiter.api.Test;

import java.util.Map;
@@ -34,9 +33,7 @@ class StandardRESTClientProviderTest {

private static final String CLIENT_CREDENTIALS = "CLIENT_ID:CLIENT_SECRET";

- private static final ComponentLog COMPONENT_LOG = new MockComponentLog(StandardRESTClientProvider.class.getName(), StandardRESTClientProvider.class);
-
- private final StandardRESTClientProvider provider = new StandardRESTClientProvider(COMPONENT_LOG);
+ private final StandardRESTClientProvider provider = new StandardRESTClientProvider();

@Test
void testBuild() {
@@ -45,6 +42,7 @@ class StandardRESTClientProviderTest {
final RESTClient restClient = provider.build(properties);

assertNotNull(restClient);
+ assertInstanceOf(HTTPClient.class, restClient);
}

@Test
@@ -57,6 +55,7 @@ class StandardRESTClientProviderTest {
final RESTClient restClient = provider.build(properties);

assertNotNull(restClient);
+ assertInstanceOf(HTTPClient.class, restClient);
}

@Test
@@ -68,7 +67,6 @@ class StandardRESTClientProviderTest {

final RESTClient restClient = provider.build(properties);

- assertNotNull(restClient);
- assertInstanceOf(CredentialsRefreshRESTClient.class, restClient);
+ assertInstanceOf(HTTPClient.class, restClient);
Expand Down
Loading
Loading