Commit e3fdcb30 authored by guus's avatar guus

We should process IQ-stanzas of type GET if there's no 'to' address (OF-462)

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12529 b35dd754-fafc-0310-a699-88a17e54d16e
parent d2eecabe
...@@ -393,6 +393,20 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider, ...@@ -393,6 +393,20 @@ public class IQPEPHandler extends IQHandler implements ServerIdentitiesProvider,
// Process with PubSub as usual. // Process with PubSub as usual.
pepServiceManager.process(pepService, packet); pepServiceManager.process(pepService, packet);
} else if (packet.getType() == IQ.Type.get) {
final String jidFrom = senderJID.toBareJID();
final PEPService pepService = pepServiceManager.getPEPService(jidFrom);
if (pepService != null) {
pepServiceManager.process(pepService, packet);
} else {
// Process with PubSub using a dummyService. In the case where an IQ packet is sent to
// a user who does not have a PEP service, we wish to utilize the error reporting flow
// already present in the PubSubEngine. This gives the illusion that every user has a
// PEP service, as required by the specification.
PEPService dummyService = new PEPService(XMPPServer.getInstance(), senderJID.toBareJID());
pepServiceManager.process(dummyService, packet);
}
} }
} }
else if (packet.getType() == IQ.Type.get || packet.getType() == IQ.Type.set) { else if (packet.getType() == IQ.Type.get || packet.getType() == IQ.Type.set) {
......
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