There is a race at server boot between the service for the security-domain and the remoting interface when configured to use a JAAS realm. The JaasService waits for the security-manager but not for the security-domain (here).
This way the remoting can start when the security-domain is not ready yet and then, if there is a client call at this point, the authentication is created with an incorrect cache. In this scenario the security-domain is created in the JNDI lookup here with the default LRU cache. Finally when the security-domain is started by the boot process the cache is not replaced (these lines).
The final issue is the security-domain and its authentication is using a default cache instead of a infinispan one. So if the security-domain was configured to use infinispan all those settings are lost.
- is incorporated by
-
JBEAP-24167 (7.4.z) Upgrade WildFly Core from 15.0.19.Final-redhat-00001 to 15.0.21.Final-redhat-00002
- Closed