Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

small fix in KeycloakAuthorizatorPolicy

Michael Rademakerc9087e1f31b2
diff --git a/manager/src/main/java/org/openremote/manager/mqtt/KeycloakAuthorizatorPolicy.java b/manager/src/main/java/org/openremote/manager/mqtt/KeycloakAuthorizatorPolicy.java
index b3fda1ff0..7731d82ff 100644
--- a/manager/src/main/java/org/openremote/manager/mqtt/KeycloakAuthorizatorPolicy.java
+++ b/manager/src/main/java/org/openremote/manager/mqtt/KeycloakAuthorizatorPolicy.java
@@ -108,7 +108,7 @@ public class KeycloakAuthorizatorPolicy implements IAuthorizatorPolicy {
String[] topicParts = topic.getTokens().stream().map(Token::toString).toArray(String[]::new);
String assetId = topicParts[1];
AssetFilter<AttributeEvent> attributeAssetFilter = new AssetFilter<AttributeEvent>().setRealm(connection.realm).setAssetIds(assetId);
- if (topicParts.length == 3) { //attribute specific
+ if (topicParts.length >= 3) { //attribute specific
attributeAssetFilter.setAttributeNames(topicParts[2]);
}
EventSubscription<AttributeEvent> subscription = new EventSubscription<>(