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

It's impossible to test the right of a group directly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0-milestone-2
    • Fix Version/s: 12.10
    • Component/s: Security
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Passing the reference of a group to AuthorizationManager#hasAccess does not return an error but behave as if no right was associated with this group which could give the false impression that it's working in some case and not in others.

      We should fix the security module so testing the right of a group directly behave as expected.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 1 hour
                  1h