From de369e669a85f7f055c1b1b2de78e7eaf6aa0574 Mon Sep 17 00:00:00 2001 From: Sameera Wickramasekara Date: Thu, 31 Aug 2017 15:50:45 +0530 Subject: [PATCH] Fix wso2/product-iot#1364 --- .../adapter/websocket/authorization/DeviceAuthorizer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/extensions/cdmf-transport-adapters/output/org.wso2.carbon.device.mgt.output.adapter.websocket/src/main/java/org/wso2/carbon/device/mgt/output/adapter/websocket/authorization/DeviceAuthorizer.java b/components/extensions/cdmf-transport-adapters/output/org.wso2.carbon.device.mgt.output.adapter.websocket/src/main/java/org/wso2/carbon/device/mgt/output/adapter/websocket/authorization/DeviceAuthorizer.java index 36744852e..12e42a518 100644 --- a/components/extensions/cdmf-transport-adapters/output/org.wso2.carbon.device.mgt.output.adapter.websocket/src/main/java/org/wso2/carbon/device/mgt/output/adapter/websocket/authorization/DeviceAuthorizer.java +++ b/components/extensions/cdmf-transport-adapters/output/org.wso2.carbon.device.mgt.output.adapter.websocket/src/main/java/org/wso2/carbon/device/mgt/output/adapter/websocket/authorization/DeviceAuthorizer.java @@ -104,7 +104,7 @@ public class DeviceAuthorizer implements Authorizer { List devices = deviceAuthorizationResult.getAuthorizedDevices(); if (devices != null && devices.size() > 0) { DeviceIdentifier authorizedDevice = devices.get(0); - if (authorizedDevice.getId().equals(deviceId) && authorizedDevice.getType().equals(deviceType)) { + if (authorizedDevice.getId().equals(deviceId) && authorizedDevice.getType().equalsIgnoreCase(deviceType)) { return true; } }