Presence updates do not appear to be working correctly with shared groups and LDAP enabled.
Just to add that this would be a very worthwhile fix for us as well for our deployment.
Here's a corrected patch that works for us (Openfire 3.6.3):
diff -up openfire_src/src_orig/java/org/jivesoftware/openfire/roster/Roster.java openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java
— openfire_src/src_orig/java/org/jivesoftware/openfire/roster/Roster.java 2009-03-11 08:52:59.000000000 +0200
+++ openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java 2009-03-11 08:52:50.000000000 +0200
@@ -143,7 +143,7 @@ public class Roster implements Cacheable
}
// Set subscription type to BOTH if the roster user belongs to a shared group
// that is mutually visible with a shared group of the new roster item
if (rosterManager.hasMutualVisibility(username, userGroups, jid, itemGroups)) {
+ if (rosterManager.hasMutualVisibility(username, sharedGroups, jid, itemGroups)) {
item.setSubStatus(RosterItem.SUB_BOTH);
}
else {
Can you post the compiled Roster.class with this fix in it?
Committed 1 line patch with revision 11087. Should appear in next release. thanks
reopening to fix versions, my bad