Fix AuthenticatedClientSessionEntity protostream encoding

For String fields that may be null, convert an empty string to null when
reading from Protostream

Fixes #30511

Signed-off-by: Pedro Ruivo <pruivo@redhat.com>
This commit is contained in:
Pedro Ruivo 2024-06-17 20:41:03 +01:00 committed by Alexander Schwartz
parent bdf6dff279
commit 67098f0469

View file

@ -152,9 +152,9 @@ public class AuthenticatedClientSessionEntity extends SessionEntity {
AuthenticatedClientSessionEntity(String realmId, String authMethod, String redirectUri, int timestamp, String action, Map<String, String> notes, UUID id) {
super(realmId);
this.authMethod = authMethod;
this.redirectUri = redirectUri;
this.redirectUri = Marshalling.emptyStringToNull(redirectUri);
this.timestamp = timestamp;
this.action = action;
this.action = Marshalling.emptyStringToNull(action);
this.notes = notes;
this.id = id;
}