[keycloak-user] ProviderFactory::postInit not called with hot deployment

Dmitry Telegin mitya at cargosoft.ru
Tue Jun 27 21:35:46 EDT 2017


Hi,

Seems like o.k.provider.ProviderFactory::postInit() is called only upon
server startup, no matter which way the provider has been deployed, as
a module or via the deployments dir. However, if the provider is hot
(re)deployed on the running server, the method is not called.
(ProviderFactory::init() is called always, but it's insufficient for
most init phase tasks since normally a KeycloakSessionFactory instance
is required.)

Indeed, o.k.services.DefaultKeycloakSessionFactory::deploy() doesn't
contain mentions of postInit, contrary to
DefaultKeycloakSessionFactory::init(). Seems like a bug to me, OK to
file JIRA issue and PR?

Regards,
Dmitry


More information about the keycloak-user mailing list