Commit a660434a 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/pep@8837 b35dd754-fafc-0310-a699-88a17e54d16e
parent 51563c85
...@@ -240,8 +240,6 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -240,8 +240,6 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
} }
else if (packet.getType() == IQ.Type.get || packet.getType() == IQ.Type.set) { 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(); String jidTo = packet.getTo().toBareJID();
PEPService pepService = pepServices.get(jidTo); PEPService pepService = pepServices.get(jidTo);
...@@ -250,8 +248,9 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -250,8 +248,9 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
pubSubEngine.process(pepService, packet); pubSubEngine.process(pepService, packet);
} }
else { else {
// TODO: Handle other packets here... ? // Process with PubSub using a dummyService.
// Example: pubsub packet with the wrong packet.getTo() 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