Uploaded image for project: 'ejabberd development'
  1. ejabberd development
  2. EJAB-1441

Allow some packets, regardless of user privacy rules

    Details

      Description

      http://xmpp.org/rfcs/rfc3921.html#rfc.section.10.2 and http://xmpp.org/extensions/xep-0016.html#protocol-rules say:

      Privacy lists MUST be the first delivery rule applied by a server, superseding ...

      If a client sets a rule to block all stanzas of subscription=none, then the client can no longer use Service Discovery, because stanzas from/to the account's own server are also blocked.

      An expected solution in the client-side is that the client adds a rule with higher priority that allows all stanzas where jid=yourserver.com. But this won't work because such JID matches not only the server, but also all the users in the server:

      <domain> (the domain itself matches, as does any user@domain or domain/resource)

      The solution in the server-side is that some stanzas are allowed regardless of the privacy rules the client has defined. The attached patch implements this.

      Related:

        Expenses

          Activity

          Hide
          ekhramtsov ekhramtsov added a comment -

          Just for the record, the discussion moved from ejabberd ml to JIG: http://mail.jabber.org/pipermail/standards/2011-April/024449.html

          Show
          ekhramtsov ekhramtsov added a comment - Just for the record, the discussion moved from ejabberd ml to JIG: http://mail.jabber.org/pipermail/standards/2011-April/024449.html
          Hide
          kgemayel Karim Gemayel (Inactive) added a comment -

          The XEP is silent on this point and it's problematic, hence we have to interpret the silence of the XEP and such an interpretation can be : "Stanzas coming from the server's Jid and from the user's bare Jid MUST NOT be blocked. Any privacy list item containing such privacy rules MUST be rejected by the server."

          Show
          kgemayel Karim Gemayel (Inactive) added a comment - The XEP is silent on this point and it's problematic, hence we have to interpret the silence of the XEP and such an interpretation can be : "Stanzas coming from the server's Jid and from the user's bare Jid MUST NOT be blocked. Any privacy list item containing such privacy rules MUST be rejected by the server."

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development