Keycloak 19 cannot register post logout redirect URIs whose length in total is over 4000

Closes #14013
This commit is contained in:
Takashi Norimatsu 2022-09-09 04:45:42 +09:00 committed by Hynek Mlnařík
parent 64256e9ae4
commit c60a34ac06
2 changed files with 17 additions and 1 deletions

View file

@ -28,6 +28,8 @@ import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Nationalized;
/**
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
@ -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() {

View file

@ -55,4 +55,17 @@
</createIndex>
</changeSet>
<changeSet author="keycloak" id="client-attributes-string-accomodation-fixed">
<addColumn tableName="CLIENT_ATTRIBUTES">
<column name="VALUE_NEW" type="NCLOB" />
</addColumn>
<update tableName="CLIENT_ATTRIBUTES">
<column name="VALUE_NEW" valueComputed="VALUE"/>
</update>
<dropColumn tableName="CLIENT_ATTRIBUTES" columnName="VALUE"/>
<renameColumn tableName="CLIENT_ATTRIBUTES" oldColumnName="VALUE_NEW" newColumnName="VALUE" columnDataType="NCLOB"/>
</changeSet>
</databaseChangeLog>