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:
parent
bdf6dff279
commit
67098f0469
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
AuthenticatedClientSessionEntity(String realmId, String authMethod, String redirectUri, int timestamp, String action, Map<String, String> notes, UUID id) {
|
||||||
super(realmId);
|
super(realmId);
|
||||||
this.authMethod = authMethod;
|
this.authMethod = authMethod;
|
||||||
this.redirectUri = redirectUri;
|
this.redirectUri = Marshalling.emptyStringToNull(redirectUri);
|
||||||
this.timestamp = timestamp;
|
this.timestamp = timestamp;
|
||||||
this.action = action;
|
this.action = Marshalling.emptyStringToNull(action);
|
||||||
this.notes = notes;
|
this.notes = notes;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue