Commit 4b719073 authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

Fixed a bug in IQPEPHandler that ignored certain types of packets.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches@8837 b35dd754-fafc-0310-a699-88a17e54d16e
parent c60b376e
......@@ -240,8 +240,6 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
}
else if (packet.getType() == IQ.Type.get || packet.getType() == IQ.Type.set) {
// TODO: Ensure these packets get handled. (Check XEP-0060 for examples.)
String jidTo = packet.getTo().toBareJID();
PEPService pepService = pepServices.get(jidTo);
......@@ -250,8 +248,9 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
pubSubEngine.process(pepService, packet);
}
else {
// TODO: Handle other packets here... ?
// Example: pubsub packet with the wrong packet.getTo()
// Process with PubSub using a dummyService.
PEPService dummyService = new PEPService(XMPPServer.getInstance(), packet.getFrom().toBareJID());
pubSubEngine.process(dummyService, packet);
}
}
......
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