Search code examples
javajbosswildflykeycloak

JBoss CLI special characters in property name


I have a JBoss CLI script which adds some properties to the configuration file of a keycloak server.

Some of the properties I want to add contain dots e.g. name=max.block.ms, value=5000. When I check the config file I see this <property name="max" value="{&quot;block&quot; => {&quot;ms&quot; => 5000}}"/>

I only found this official guide which explains how to handle special characters in the value, but this doesn't work for the name.

EDIT: This is the line from my script

/subsystem=keycloak-server/spi=eventsListener/provider=kafka:write-attribute(name=properties.max.block.ms,value=5000)

Solution

  • This command may be a workaround:

    /subsystem=keycloak-server/spi=eventsListener/provider=kafka:map-put(name=properties,key=max.block.ms,value=5000)