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

Update or mark method User#isUserInGroup as deprecated

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 16.4.6
    • User
    • Unknown

    Description

      The method from isUserInGroup from com.xpn.xwiki.api.User is using deprecated API to fetch the user's group list, instead of the new group manager API methods.

      Issue XWIKI-12292 open about this method is closed as won't fix with a recommendation to use the group manager API instead.

      Thus, one of the 2 needs to be done:

      • either the method isUserInGroup is kept but marked somehow as deprecated, or javadoc is updated to mention that it has unresolved limitations and the group manager API is now recommended
      • or its implementation is updated to be as correct as it can be using the latest and greatest of the APIs.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: