Commit 49caea64 authored by Axel Brand's avatar Axel Brand Committed by daeva

Don't forward Subscription:Remove IQ of transport itself to the server as it will throw a exception

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13499 b35dd754-fafc-0310-a699-88a17e54d16e
parent 84c0e315
...@@ -95,7 +95,12 @@ public class ReceiveComponentUpdatesProcessor extends AbstractRemoteRosterProces ...@@ -95,7 +95,12 @@ public class ReceiveComponentUpdatesProcessor extends AbstractRemoteRosterProces
try { try {
roster = _rosterManager.getRoster(username); roster = _rosterManager.getRoster(username);
Log.debug("Removing contact " + username + " from contact list."); Log.debug("Removing contact " + username + " from contact list.");
roster.deleteRosterItem(new JID(jid), false); //If the contact didnt exist in contact list it is likely the transport itself in which case
//we do not want to forward this msg to server...
RosterItem item = roster.deleteRosterItem(new JID(jid), false);
if (item == null) {
throw new PacketRejectedException();
}
} catch (UserNotFoundException e) { } catch (UserNotFoundException e) {
Log.debug("Could not find user while cleaning up the roster in GoJara for user " + username, e); Log.debug("Could not find user while cleaning up the roster in GoJara for user " + username, e);
response.setType(IQ.Type.error); response.setType(IQ.Type.error);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment