Jive Software Open Source

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Openfire
  • OF-216

Presence issues with LDAP and shared groups

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 3.6.4
  • Fix Version/s: 3.7.0 beta
  • Component/s: Core
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

Presence updates do not appear to be working correctly with shared groups and LDAP enabled.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Source
  • Reviews
  • Builds
Hide
Permalink
George Joseph added a comment - 09/25/06 06:26 PM

Check line 128 of Roster.java. The call to hasMutualVisibility is using "userGroups" instead of "sharedGroups". Not sure if this is the root problem but changing to "sharedGroups" does make everything work correctly.

Show
George Joseph added a comment - 09/25/06 06:26 PM Check line 128 of Roster.java. The call to hasMutualVisibility is using "userGroups" instead of "sharedGroups". Not sure if this is the root problem but changing to "sharedGroups" does make everything work correctly.
Hide
Permalink
Matt Tucker added a comment - 09/30/06 01:05 AM

Temporary issue is in place for the beta 3 release. We need to make the code more efficient, so leaving this issue open.

Show
Matt Tucker added a comment - 09/30/06 01:05 AM Temporary issue is in place for the beta 3 release. We need to make the code more efficient, so leaving this issue open.
Hide
Permalink
sucoplus added a comment - 03/31/08 07:30 PM

Same problem on version Openfire 3.4.5. The contacts status only is updated when the client login to the server, later the changes in the status of the contacts isn't updated.

Show
sucoplus added a comment - 03/31/08 07:30 PM Same problem on version Openfire 3.4.5. The contacts status only is updated when the client login to the server, later the changes in the status of the contacts isn't updated.
Hide
Permalink
Miguel Angel added a comment - 04/28/08 08:08 PM

Same problem here with Openfire 3.5.1. The contact status is not updated when using groups from LDAP. Changing to DefaultGroupProvider and creating groups on openfire resolves the problem but I think it has to be resolved anyway.

Show
Miguel Angel added a comment - 04/28/08 08:08 PM Same problem here with Openfire 3.5.1. The contact status is not updated when using groups from LDAP. Changing to DefaultGroupProvider and creating groups on openfire resolves the problem but I think it has to be resolved anyway.
Hide
Permalink
Stefan Praszalowicz added a comment - 10/01/08 02:14 PM

Same problem, and the Roster.java "patch" works...

diff -u -r openfire_src_p/src/java/org/jivesoftware/openfire/roster/Roster.java openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java
— openfire_src_p/src/java/org/jivesoftware/openfire/roster/Roster.java 2008-10-01 12:27:38.000000000 +0200
+++ openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java 2008-08-29 06:13:21.000000000 +0200
@@ -141,7 +141,7 @@
}
// 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, sharedGroups, jid, itemGroups)) {
    + if (rosterManager.hasMutualVisibility(username, userGroups, jid, itemGroups)) { item.setSubStatus(RosterItem.SUB_BOTH); }
    else {

This really really should be applied ! Please :>

Show
Stefan Praszalowicz added a comment - 10/01/08 02:14 PM Same problem, and the Roster.java "patch" works... diff -u -r openfire_src_p/src/java/org/jivesoftware/openfire/roster/Roster.java openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java — openfire_src_p/src/java/org/jivesoftware/openfire/roster/Roster.java 2008-10-01 12:27:38.000000000 +0200 +++ openfire_src/src/java/org/jivesoftware/openfire/roster/Roster.java 2008-08-29 06:13:21.000000000 +0200 @@ -141,7 +141,7 @@ } // 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, sharedGroups, jid, itemGroups)) { + if (rosterManager.hasMutualVisibility(username, userGroups, jid, itemGroups)) { item.setSubStatus(RosterItem.SUB_BOTH); } else {
This really really should be applied ! Please :>
Hide
Permalink
Daryl Herzmann added a comment - 10/03/08 12:08 AM

I'll reopen this and put it against 3.6.1 for consideration.

Show
Daryl Herzmann added a comment - 10/03/08 12:08 AM I'll reopen this and put it against 3.6.1 for consideration.
Hide
Permalink
Gaston Dombiak added a comment - 11/06/08 01:05 AM

Hey Stefan,

Could you send me a diff with your patch? The patch you pasted in Jira is not very clear to me. It seems that you replaced 'sharedGroups' with 'userGroups' in the line 141 that is probably 146 in the current code in trunk. The problem is that the code in trunk is already using the 'userGroups' variable. IOW, I don't know which was your fix.

Thanks,

– Gato

Show
Gaston Dombiak added a comment - 11/06/08 01:05 AM Hey Stefan, Could you send me a diff with your patch? The patch you pasted in Jira is not very clear to me. It seems that you replaced 'sharedGroups' with 'userGroups' in the line 141 that is probably 146 in the current code in trunk. The problem is that the code in trunk is already using the 'userGroups' variable. IOW, I don't know which was your fix. Thanks, – Gato
Hide
Permalink
Gregory Boyce added a comment - 11/26/08 06:03 PM

Based on the first comment from George: 'The call to hasMutualVisibility is using "userGroups" instead of "sharedGroups".' and the fact that Stefan's first source directory in the diff is "openfire_src_p(atched?)" versus "openfire_src", I'm guessing Stefan accidentally reversed his patch.

Any chance of seeing this fix in 3.6.3?

Show
Gregory Boyce added a comment - 11/26/08 06:03 PM Based on the first comment from George: 'The call to hasMutualVisibility is using "userGroups" instead of "sharedGroups".' and the fact that Stefan's first source directory in the diff is "openfire_src_p(atched?)" versus "openfire_src", I'm guessing Stefan accidentally reversed his patch. Any chance of seeing this fix in 3.6.3?
Hide
Permalink
Dave Koelmeyer added a comment - 01/21/09 12:00 AM

Just to add that this would be a very worthwhile fix for us as well for our deployment.

Show
Dave Koelmeyer added a comment - 01/21/09 12:00 AM Just to add that this would be a very worthwhile fix for us as well for our deployment.
Hide
Permalink
Leo Jääskeläinen added a comment - 03/11/09 06:58 AM

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 {
Show
Leo Jääskeläinen added a comment - 03/11/09 06:58 AM 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 {
Hide
Permalink
dan lawless added a comment - 06/24/09 09:09 PM

Can you post the compiled Roster.class with this fix in it?

Show
dan lawless added a comment - 06/24/09 09:09 PM Can you post the compiled Roster.class with this fix in it?
Hide
Permalink
Daryl Herzmann added a comment - 06/25/09 12:39 AM

Committed 1 line patch with revision 11087. Should appear in next release. thanks

Show
Daryl Herzmann added a comment - 06/25/09 12:39 AM Committed 1 line patch with revision 11087. Should appear in next release. thanks
Hide
Permalink
Daryl Herzmann added a comment - 01/31/10 09:04 PM

reopening to fix versions, my bad

Show
Daryl Herzmann added a comment - 01/31/10 09:04 PM reopening to fix versions, my bad

People

  • Assignee:
    Gaston Dombiak
    Reporter:
    Matt Tucker
Vote (11)
Watch (13)

Dates

  • Created:
    09/25/06 06:07 PM
    Updated:
    01/31/10 09:04 PM
    Resolved:
    01/31/10 09:04 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for igniterealtime.org. Try JIRA - bug tracking software for your team.