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

GroupManager#getGroups should allow guest user calls

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 15.8-rc-1
    • 14.10.15
    • User
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      GroupManager#getGroups currently doesn't allow calls with a null value for the member parameter. However we do use null everywhere for guest user references, and it's an easy mistake to have an API manipulating user references to accept null values and to rely on the GroupManager API.

      So I believe it would be a nice little improvment to immediately return an empty collection when calling that API with null value, instead of getting a NPE.

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: