diff --git a/server/src/uds/REST/methods/actor_v3.py b/server/src/uds/REST/methods/actor_v3.py index 7eaaf4835..f72a94655 100644 --- a/server/src/uds/REST/methods/actor_v3.py +++ b/server/src/uds/REST/methods/actor_v3.py @@ -263,6 +263,8 @@ class Initialize(ActorV3Action): # Valid actor token, now validate access allowed. That is, look for a valid mac from the ones provided. try: + # Enforce lowecase ids for sqlite + idsList = [i.lower() for i in idsList] # Set full filter dbFilter = dbFilter.filter( unique_id__in=idsList, @@ -438,6 +440,9 @@ class LoginLogout(ActorV3Action): x['mac'] for x in self._params['id'] ][:10] + # Enforce lowercase for idList + idsList = [x.lower() for x in idsList] + validId: typing.Optional[str] = service.getValidId(idsList) # Must be valid @@ -648,6 +653,9 @@ class Unmanaged(ActorV3Action): ][:10] validId: typing.Optional[str] = service.getValidId(idsList) + # enforce lowercase idsList + idsList = [i.lower() for i in idsList] + # Check if there is already an assigned user service # To notify it logout userService: typing.Optional[UserService]