[Bug 34975] New: porter should have a fallback for no IQ handlers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Mar 3 15:52:35 CET 2011


https://bugs.freedesktop.org/show_bug.cgi?id=34975

           Summary: porter should have a fallback for no IQ handlers
           Product: Wocky
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: General
        AssignedTo: telepathy-bugs at lists.freedesktop.org
        ReportedBy: jonny.lamb at collabora.co.uk
         QAContact: telepathy-bugs at lists.freedesktop.org


Gabble has this:

>  /* FIXME: the porter should do this for us. */
>  wocky_porter_register_handler_from_anyone (priv->porter,
>      WOCKY_STANZA_TYPE_IQ, WOCKY_STANZA_SUB_TYPE_NONE,
>      WOCKY_PORTER_HANDLER_PRIORITY_MIN,
>      iq_unknown_cb, conn, NULL);

iq_unknown_cb does this:

>  wocky_stanza_get_type_info (stanza, NULL, &subtype);
>
>  switch (subtype)
>    {
>    case WOCKY_STANZA_SUB_TYPE_GET:
>    case WOCKY_STANZA_SUB_TYPE_SET:
>      _gabble_connection_send_iq_error (conn, stanza,
>           XMPP_ERROR_SERVICE_UNAVAILABLE, NULL);
>       return TRUE;
>     default:
>       break;
>     }
> 
>   return FALSE;

The porter should do this for us instead of just not replying to IQs.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list