From 96329ad20d6d8e3c7af5f6a0dda0efbe41377a01 Mon Sep 17 00:00:00 2001 From: yurem Date: Tue, 4 Jan 2022 11:00:01 +0300 Subject: [PATCH] fix: fido2 and u2f script throw oops error(4.3.1+MYSQL). #1624 --- Server/src/main/java/org/gluu/oxauth/service/UserService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/src/main/java/org/gluu/oxauth/service/UserService.java b/Server/src/main/java/org/gluu/oxauth/service/UserService.java index 5d3fc36679..e2e2a4a092 100644 --- a/Server/src/main/java/org/gluu/oxauth/service/UserService.java +++ b/Server/src/main/java/org/gluu/oxauth/service/UserService.java @@ -12,6 +12,7 @@ import javax.inject.Inject; import org.apache.commons.lang.StringUtils; +import org.gluu.fido2.model.entry.Fido2RegistrationEntry; import org.gluu.oxauth.model.config.StaticConfiguration; import org.gluu.oxauth.model.configuration.AppConfiguration; import org.gluu.oxauth.model.fido.u2f.DeviceRegistration; @@ -69,7 +70,7 @@ public long countFido2RegisteredDevices(String username) { Filter registeredFilter = Filter.createEqualityFilter("oxStatus", "registered"); Filter filter = Filter.createANDFilter(userInumFilter, registeredFilter); - long countEntries = persistenceEntryManager.countEntries(baseDn, CustomEntry.class, filter); + long countEntries = persistenceEntryManager.countEntries(baseDn, Fido2RegistrationEntry.class, filter); return countEntries; }