This is an automated email from the ASF dual-hosted git repository. amichair pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/aries-rsa.git
commit a4543664950198008b34b71fcd5cec732c808b4e Author: Amichai Rothman <[email protected]> AuthorDate: Thu May 21 09:05:21 2026 +0300 ARIES-2226 Fix FastBinProvider handling of config-type properties to comply with TCK --- .../org/apache/aries/rsa/provider/fastbin/FastBinProvider.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/FastBinProvider.java b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/FastBinProvider.java index a707a894..2962b684 100644 --- a/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/FastBinProvider.java +++ b/provider/fastbin/src/main/java/org/apache/aries/rsa/provider/fastbin/FastBinProvider.java @@ -30,6 +30,7 @@ import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.Semaphore; import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; import org.apache.aries.rsa.provider.fastbin.api.SerializationStrategy; import org.apache.aries.rsa.provider.fastbin.io.ClientInvoker; @@ -139,6 +140,14 @@ public class FastBinProvider implements DistributionProvider { return null; } + // to please the TCK - throw IAE for invalid config-type properties (we don't support any) + Map<String, Object> configProperties = effectiveProperties.entrySet().stream() + .filter(e -> e.getKey().startsWith(FASTBIN_CONFIG_TYPE)) + .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); + if (!configProperties.isEmpty()) { + throw new IllegalArgumentException("invalid config-type properties: " + configProperties); + } + String endpointId = UuidGenerator.getUUID(); effectiveProperties.put(RemoteConstants.ENDPOINT_ID, endpointId);
