XWiki Platform
  1. XWiki Platform
  2. XWIKI-9551

When you delete a user from the main wiki it is not deleted from the subwiki groups

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 6.0, 5.4.5
    • Component/s: Wiki
    • Labels:
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Inconsistent display of:

      • User Directory;
      • Administration - Users / Groups;
        in the subwiki with the ones from the main wiki.
      1. 1.png
        49 kB
      2. 2.png
        33 kB
      3. 3.png
        50 kB
      4. Don'tDisplay.png
        16 kB

        Activity

        Hide
        Guillaume Delhumeau added a comment -

        A fix could be to modify the "delete user listener" to look on subwikis if the deleted user is a member of a group of these subwikis.

        It can have a serious impact on performances if there is a lot of subwikis and a lot of groups, but it's quite easy to implement.

        Any other idea?

        Guillaume

        Show
        Guillaume Delhumeau added a comment - A fix could be to modify the "delete user listener" to look on subwikis if the deleted user is a member of a group of these subwikis. It can have a serious impact on performances if there is a lot of subwikis and a lot of groups, but it's quite easy to implement. Any other idea? Guillaume
        Hide
        Vincent Massol added a comment -

        Another idea would be a scheduler job to regularly clean up users in subwiki groups. Of course it's a workaround, the best would be to have a DB design that allows to quickly remove a user from all subwikis in one go.

        Show
        Vincent Massol added a comment - Another idea would be a scheduler job to regularly clean up users in subwiki groups. Of course it's a workaround, the best would be to have a DB design that allows to quickly remove a user from all subwikis in one go.
        Show
        Thomas Mortagne added a comment - fix could be to modify the "delete user listener" to look on subwikis https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/rightsmanager/RightsManagerListener.java#L170
        Hide
        Guillaume Delhumeau added a comment -

        Thomas Mortagne: Then it's broken

        Show
        Guillaume Delhumeau added a comment - Thomas Mortagne : Then it's broken

          People

          • Assignee:
            Thomas Mortagne
            Reporter:
            Ecaterina Moraru (Valica)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response: