Hi! I have a question about the user caching in the UserManager class. It looks like the usersCache is the cache of local users, which is pretty straightforward. When a user is created, the new user is added to the cache. However, the new user is -not- added to the registeredUsersCache. I’‘m seeing a problem due to this, and I’‘m wondering if this is a bug in Wildfire or if there’‘s a better way to do what I’‘m trying to do. What I’‘m trying to do is have users created dynamically when people log in to the server for the first time. Here’‘s the scenario that creates the problem I’'m seeing:
-
initial state: user ‘‘example’’ does not exist yet
-
a request is made to the presence plugin for the presence of user ‘‘example’’
-
during the handling of this request, a FALSE is put into the registeredUsersCache for ‘‘example’’
-
user ‘‘example’’ logs in, and in a custom AuthProvider, a call is made to UserManager.createUser() to create ‘‘example’’
At this point, the ‘‘example’’ user -is- in the usersCache, but ‘‘example’’ maps to FALSE in the registeredUsersCache, which winds up causing some funky behavior (like packets not being delivered). Should a TRUE be put in the registeredUsersCache when the user is created to avoid this issue?