From c60a34ac0631cc1d9f3ed8e1950754dc6b9c48fa Mon Sep 17 00:00:00 2001 From: Takashi Norimatsu Date: Fri, 9 Sep 2022 04:45:42 +0900 Subject: [PATCH] Keycloak 19 cannot register post logout redirect URIs whose length in total is over 4000 Closes #14013 --- .../models/jpa/entities/ClientAttributeEntity.java | 5 ++++- .../resources/META-INF/jpa-changelog-20.0.0.xml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/model/jpa/src/main/java/org/keycloak/models/jpa/entities/ClientAttributeEntity.java b/model/jpa/src/main/java/org/keycloak/models/jpa/entities/ClientAttributeEntity.java index 1292dc726f..8b8557b5da 100644 --- a/model/jpa/src/main/java/org/keycloak/models/jpa/entities/ClientAttributeEntity.java +++ b/model/jpa/src/main/java/org/keycloak/models/jpa/entities/ClientAttributeEntity.java @@ -28,6 +28,8 @@ import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.Table; +import org.hibernate.annotations.Nationalized; + /** * @author Marek Posolda @@ -46,7 +48,8 @@ public class ClientAttributeEntity { @Column(name="NAME") protected String name; - @Column(name = "VALUE", length = 4000) + @Nationalized + @Column(name = "VALUE") protected String value; public ClientEntity getClient() { diff --git a/model/jpa/src/main/resources/META-INF/jpa-changelog-20.0.0.xml b/model/jpa/src/main/resources/META-INF/jpa-changelog-20.0.0.xml index dbe5a78f4b..1c7977a005 100644 --- a/model/jpa/src/main/resources/META-INF/jpa-changelog-20.0.0.xml +++ b/model/jpa/src/main/resources/META-INF/jpa-changelog-20.0.0.xml @@ -55,4 +55,17 @@ + + + + + + + + + + + + + \ No newline at end of file