• Florian Schmaus's avatar
    EntityCapabilitiesManager: Don't handle IQ stanzas with came in through... · b815c266
    Florian Schmaus authored
    EntityCapabilitiesManager: Don't handle IQ stanzas with came in through receivedAnswer() but are not of IQ.Type.result by deeming these packets as invalid (which they are).
    
    It seems that there are some entities that accounce protocol/caps support but do not allow disco#info queries (maybe to avoid information leaks). They send an error IQ instead as rely to disco#info. This causes EntityCapabilitiesManager to throw an NPE:
    
    2013.02.26 13:16:33 org.jivesoftware.openfire.IQRouter - Error proces
    sing answer of remote entity. Answer: <iq from="jdev@conference.jabbe
    r.org/XXX" to="freakempire.de" type="error" id="204-29"><error c
    ode="405" type="cancel"><not-allowed xmlns="urn:ietf:params:xml:ns:xm
    pp-stanzas"/></error></iq>
    java.lang.NullPointerException
            at org.jivesoftware.openfire.entitycaps.EntityCapabilitiesMan
    ager.getIdentitiesFrom(EntityCapabilitiesManager.java:336)
            at org.jivesoftware.openfire.entitycaps.EntityCapabilitiesMan
    ager.generateVerHash(EntityCapabilitiesManager.java:237)
    
    git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13525 b35dd754-fafc-0310-a699-88a17e54d16e
    b815c266
Name
Last commit
Last update
..
bin Loading commit data...
conf Loading commit data...
database Loading commit data...
i18n Loading commit data...
java Loading commit data...
javadoc/jdk15 Loading commit data...
plugins Loading commit data...
resources Loading commit data...
security Loading commit data...
spank Loading commit data...
test Loading commit data...
tools/anttask/org/jivesoftware/ant Loading commit data...
web Loading commit data...