From afbd80dc6209f2045d533bf18f4f5ee396c8d4ab Mon Sep 17 00:00:00 2001 From: Ashan Thamara Date: Thu, 19 Mar 2026 23:46:24 +0530 Subject: [PATCH] Fix issue in resolving device registration cache from session data store before expiry --- .gitignore | 12 + .../pom.xml | 6 +- .../DeviceRegistrationRequestCacheEntry.java | 46 +++- .../constant/PushDeviceHandlerConstants.java | 3 + .../DeviceRegistrationContextManagerImpl.java | 18 +- ...viceRegistrationRequestCacheEntryTest.java | 209 ++++++++++++++++++ ...iceRegistrationContextManagerImplTest.java | 105 +++++++-- 7 files changed, 370 insertions(+), 29 deletions(-) create mode 100644 components/org.wso2.carbon.identity.notification.push.device.handler/src/test/java/org/wso2/carbon/identity/notification/push/device/handler/cache/DeviceRegistrationRequestCacheEntryTest.java diff --git a/.gitignore b/.gitignore index 524f096..024afb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,14 @@ # Compiled class file *.class +.classpath +.factorypath +.settings +.project +*.iml +*.iws +*.ipr +.idea +.DS_Store # Log file *.log @@ -22,3 +31,6 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* replay_pid* + +# Ignore everything in this directory +target diff --git a/components/org.wso2.carbon.identity.notification.push.device.handler/pom.xml b/components/org.wso2.carbon.identity.notification.push.device.handler/pom.xml index 0b28d88..324c1d2 100644 --- a/components/org.wso2.carbon.identity.notification.push.device.handler/pom.xml +++ b/components/org.wso2.carbon.identity.notification.push.device.handler/pom.xml @@ -1,6 +1,6 @@