auth_token: fix issue when data in cache gets corrupted
Previously token cache was not correctly handling the case when data
in memcached is un-decryptable.
The cache process was returning a null value that was not considered
resulting a python exception raised
The commit fixes the issue by adding a condition to validate the value
returned.
Reviewed: https:/ /review. opendev. org/c/openstack /keystonemiddle ware/+/ 885351 /opendev. org/openstack/ keystonemiddlew are/commit/ 70337682d97d132 76ca17309505e55 add1405d73
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 70337682d97d132 76ca17309505e55 add1405d73
Author: Sahid Orentino Ferdjaoui <email address hidden>
Date: Tue Jun 6 11:39:21 2023 +0200
auth_token: fix issue when data in cache gets corrupted
Previously token cache was not correctly handling the case when data
in memcached is un-decryptable.
The cache process was returning a null value that was not considered
resulting a python exception raised
The commit fixes the issue by adding a condition to validate the value
returned.
Closes-bug: #2023015 1febc1940836517 36bed446953
Change-Id: Ic48d2056998078
Signed-off-by: Sahid Orentino Ferdjaoui <email address hidden>