Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 3.6.4
-
Fix Version/s: None
-
Component/s: Core
-
Labels:None
Description
Many users are complaining that changes to LDAP groups are not being reflected in rosters quickly enough. There are two layers to this:
The roster code retrieves group information by calling GroupManagergetGroups(User). At the moment, there is no caching in this method although it should be added. The entire roster is then cached, included shared group information.
Because of the roster caching logic in place, it makes it very frustrating for people to see group changes take effect. First, because they'll only see changes when logging out and then back in. Second, because the roster is cached, it can take 6 hours to see changes. People generally resort to just shutting down the server.
The first step could be to change how roster caching works. I'd like to see if we could cache the db roster data but then dynamically build out the shared roster information. I'm not sure how expensive the shared roster group calculations are, which would dictate the feasability of this. Assuming it's not too expensive, if the shared group data was dynamic, then it would be GroupManager.getGroups(User) caching that would dictate how quickly changes in the back-end groups were reflected in rosters.
Second, we should try to figure out if it's possible to push roster changes to a user. An idea: have a flag in the roster code that says whether to check for roster changes on a periodic basis. Any time an external group system is used, the flag would get set by that provider. So, every X hours that a user is logged in, recalculate the shared group portion of their roster. If it's changed, send those changes to them dynamically. This would mean that if someone changes a group in LDAP, after X hours everyone from that group that continues to be logged in will see that change.
Issue Links
- is related to
-
JM-600
Add support for managing system caches from the admin console
-
Activity
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 2.3.0 [ 10141 ] | |
| Fix Version/s | 2.2.1 [ 10140 ] |
| Fix Version/s | 2.3.0 [ 10200 ] | |
| Fix Version/s | 2.3.0 Beta 1 [ 10141 ] |
| Fix Version/s | 2.3.0 [ 10213 ] | |
| Fix Version/s | 2.3.0 Beta 2 [ 10200 ] |
| Fix Version/s | 2.3.1 [ 10157 ] | |
| Fix Version/s | 2.3.0 [ 10213 ] |
| Fix Version/s | 2.3.2 [ 10230 ] | |
| Fix Version/s | 2.3.1 [ 10157 ] |
| Fix Version/s | 2.4.1 [ 10240 ] | |
| Fix Version/s | 2.4.0 [ 10230 ] |
| Fix Version/s | 2.4.2 [ 10270 ] | |
| Fix Version/s | 2.4.1 [ 10240 ] |
| Fix Version/s | 2.4.3 [ 10290 ] | |
| Fix Version/s | 2.4.2 [ 10270 ] |
| Fix Version/s | 2.4.4 [ 10300 ] | |
| Fix Version/s | 2.4.3 [ 10290 ] |
| Fix Version/s | 2.4.5 [ 10310 ] | |
| Fix Version/s | 2.4.4 [ 10300 ] |
| Fix Version/s | 2.5.1 [ 10320 ] | |
| Fix Version/s | 2.5.0 [ 10310 ] |
| Fix Version/s | 2.5.2 [ 10360 ] | |
| Fix Version/s | 2.5.1 [ 10320 ] |
| Status | Open [ 1 ] | In Progress [ 3 ] |
| Status | In Progress [ 3 ] | Open [ 1 ] |
| Fix Version/s | 2.6.1 [ 10390 ] | |
| Fix Version/s | 2.6.0 [ 10360 ] |
| Fix Version/s | 3.x [ 10181 ] | |
| Fix Version/s | 2.6.2 [ 10390 ] |
| Project | Openfire (ARCHIVED) [ 10010 ] | Openfire [ 10140 ] |
| Key | JM-379 | OF-142 |
| Affects Version/s | 3.6.4 [ 10855 ] | |
| Affects Version/s | 2.2.0 [ 10131 ] | |
| Component/s | Core [ 10232 ] | |
| Component/s | Core [ 10002 ] | |
| Fix Version/s | 3.6.6 [ 10861 ] | |
| Fix Version/s | 3.x [ 10181 ] |
| Fix Version/s | 3.7.1 [ 10855 ] | |
| Fix Version/s | 3.6.6 [ 10861 ] |
| Affects Version/s | 3.6.4 [ 10870 ] | |
| Affects Version/s | 3.7.1 [ 10855 ] |
| Fix Version/s | 3.7.2 [ 11458 ] | |
| Fix Version/s | 3.7.1 [ 10855 ] |
| Assignee | Gaston Dombiak [ gaston ] | Guus der Kinderen [ guus ] |
| Fix Version/s | 3.7.2 [ 11458 ] |