You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The service should return a 200 OK response with the expected verification results.
Actual Behavior
The request fails with a 400 Bad Request error and the following exception:
{"exception":true,"id":"SerializationException","status":"Bad Request","code":"400",
"message":"Serializer for subclass 'LocationIgnorantKLogger' is not found in the polymorphic scope of 'KLogger'. Check if class with serial name 'LocationIgnorantKLogger' exists and serializer is registered in a corresponding SerializersModule. To be registered automatically, class 'LocationIgnorantKLogger' has to be '@Serializable', and the base class 'KLogger' has to be sealed and '@Serializable'."}
Environment
Docker Prebuilt Images
WaltID Identity Version: 0.12.0
Stack Trace
(Full stack trace is attached in the issue description.) stacktrace.txt
Possible Solution
Modify the RevocationPolicy implementation to prevent the logger from being serialized:
In waltid-libraries/credentials/waltid-verification-policies/src/jvmMain/kotlin/id/walt/policies/policies/RevocationPolicy.jvm.kt, move the following logger declaration inside the functions to ensure it is re-created per invocation and excluded from serialization:
privateval logger =KotlinLogging.logger {}
This adjustment ensures that the logger does not interfere with serialization when using Redis as the persistence backend.
The text was updated successfully, but these errors were encountered:
The revocation policy (revoked-status-list) fails when using Redis as the persistence backend in the waltid-verifier service.
Steps to Reproduce
Expected Behavior
The service should return a 200 OK response with the expected verification results.
Actual Behavior
The request fails with a 400 Bad Request error and the following exception:
Environment
Stack Trace
(Full stack trace is attached in the issue description.)
stacktrace.txt
Possible Solution
Modify the
RevocationPolicy
implementation to prevent the logger from being serialized:In
waltid-libraries/credentials/waltid-verification-policies/src/jvmMain/kotlin/id/walt/policies/policies/RevocationPolicy.jvm.kt
, move the following logger declaration inside the functions to ensure it is re-created per invocation and excluded from serialization:This adjustment ensures that the logger does not interfere with serialization when using Redis as the persistence backend.
The text was updated successfully, but these errors were encountered: