100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
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.javaindex 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 specificattributeAssetFilter.setAttributeNames(topicParts[2]);}EventSubscription<AttributeEvent> subscription = new EventSubscription<>(