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

Pubsub subscriptions remain after anonymous user removed

    Details

      Description

      Anonymous users are allowed to subscribe to pubsub nodes but their subscriptions remain when the users are gone, cluttering up the database and affecting later users having the same JID. Adding the following line to mod_pubsub:init resolves the issue.

      ejabberd_hooks:add(anonymous_purge_hook, ServerHost, ?MODULE, remove_user, 50),
      

        Activity

        skeltoac Andy Skelton created issue -
        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        thanks !
        this is planned for injection in 2.1

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - thanks ! this is planned for injection in 2.1
        cromain@process-one.net Christophe Romain (Inactive) made changes -
        Field Original Value New Value
        Fix Version/s ejabberd 2.1.0 [ 10140 ]
        Fix Version/s ejabberd 3.0.0-alpha [ 10240 ]
        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        i'm adding it right now, also include ejabberd_hooks:delete in terminate.

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - i'm adding it right now, also include ejabberd_hooks:delete in terminate.
        Hide
        cromain@process-one.net Christophe Romain (Inactive) added a comment -

        fix commited
        thanks !

        Show
        cromain@process-one.net Christophe Romain (Inactive) added a comment - fix commited thanks !
        cromain@process-one.net Christophe Romain (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        cromain@process-one.net Christophe Romain (Inactive) made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        mremond@process-one.net Mickaël Rémond made changes -
        Workflow development v3 [ 68605 ] Development v4 [ 81143 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development