KEYCLOAK-7989 Running server config migration fails due the Hostname SPI

This commit is contained in:
mposolda 2018-08-02 16:52:30 +02:00 committed by Hynek Mlnařík
parent 01af40413e
commit a63676ce93
2 changed files with 6 additions and 6 deletions

View file

@ -440,10 +440,10 @@ if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/s
end-if
# Migrate from 4.2.0 to 4.3.0
if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource
if (outcome == failed) of /profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:read-resource
echo Adding spi=hostname...
/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
/profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
/profile=$clusteredProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
echo
end-if

View file

@ -397,10 +397,10 @@ if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/
end-if
# Migrate from 4.2.0 to 4.3.0
if (outcome == failed) of /subsystem=keycloak-server/spi=hostname/:read-resource
if (outcome == failed) of /profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:read-resource
echo Adding spi=hostname...
/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
/profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/:add(default-provider=request)
/profile=$standaloneProfile/subsystem=keycloak-server/spi=hostname/provider=fixed/:add(properties={hostname => "localhost",httpPort => "-1",httpsPort => "-1"},enabled=true)
echo
end-if