From 86628dbe8fb16930679bc1a8eef716b123f319a3 Mon Sep 17 00:00:00 2001 From: Chandrika Sivaramakrishnan Date: Fri, 25 Aug 2023 16:51:58 -0700 Subject: [PATCH] minor fix for issue #3110 --- volttron/platform/vip/agent/subsystems/rpc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/volttron/platform/vip/agent/subsystems/rpc.py b/volttron/platform/vip/agent/subsystems/rpc.py index 11fceef6ee..f567f59036 100644 --- a/volttron/platform/vip/agent/subsystems/rpc.py +++ b/volttron/platform/vip/agent/subsystems/rpc.py @@ -304,9 +304,9 @@ def _add_auth_check(self, method, required_caps): def checked_method(*args, **kwargs): user = str(self.context.vip_message.user) if self._message_bus == "rmq": - # When we address issue #2107 external platform user should - # have instance name also included in username. - user = user.split(".")[1] + # remove platform instance name. rmq user names are of the format . + user = user[user.index(".")+1:] + user_capabilites = self._owner.vip.auth.get_capabilities(user) _log.debug("**user caps is: {}".format(user_capabilites)) if user_capabilites: