Skip to content

fix logger initialization in TemplateRenderer

ScriptedLdapSshRegisterWorkflow.setPassword constructs a local instance of TemplateRenderer, which in turn means the Logger field does not get injected. Just drop injection as a workaround and use static initialization instead.

In the long term, perhaps we should switch to constructor injection instead of field injection? See also https://www.baeldung.com/java-spring-field-injection-cons

Merge request reports

Loading