Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5440

user.isUserInGroup return false if User in Master and group in virtual

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.5 M1, 2.4.1
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Environment:
      tomcat, mysql
    • keywords:
      right, api, master
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      --> A user is store in Master Wiki
      --> This user is present in Wiki group in a virtual wiki
      --> Calling API user.isUserInGroup in virtual wiki like :

      $user.isUserInGroup("XWiki.AFKLM_AccepteCharte")
      or
      $user.isUserInGroup("virtualwiki:XWiki.AFKLM_AccepteCharte")

      always return 'false'.
      Previously with release 2.0.3, 'true' was return.

      Julien

        Attachments

          Activity

            People

            • Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              jurevert Julien Revert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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