Uploaded image for project: 'VYSPER'
  1. VYSPER
  2. VYSPER-329

Server To Server inbound messages in jabber:server namespace, delivery fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.8
    • 0.8
    • server-to-server
    • None

    Description

      When recieving messages from external servers, if the message is in the jabber:server namespace the message is not recognized and is sent to the ServiceUnavailableHandler. This includes all IQ/Presence/... messages. This was discovered testing against Openfire 3.2. According to a quick look of the rfc these should be accepted.

      Easy fix it is to change XMPPCoreStanzaHandler to check for either namespace

      protected boolean verifyNamespace(Stanza stanza)

      { String namespaceUri = stanza.getNamespaceURI(); return NamespaceURIs.JABBER_SERVER.equals(namespaceUri) || NamespaceURIs.JABBER_CLIENT.equals(namespaceUri); }

      I am not entirely sure this the correct way to handle it... but it works.

      It should also log at least debug level when StanzaHandlerLookup returns SERVICE_UNAVAILABLE_STANZA_ERROR_HANDLER it would have saved days of debugging.

      Attachments

        1. vysper.diff
          27 kB
          Justin Spears

        Activity

          People

            brainlounge Bernd Fondermann
            jspears Justin Spears
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified