Uploaded image for project: 'Sentry'
  1. Sentry
  2. SENTRY-2545

Rolling back Privilege Cache to SimplePrivilegeCache does not work

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2.0, 2.3.0
    • Component/s: Sentry
    • Labels:
      None

      Description

      The change in SENTRY-2539 uses TreePrivilegeCache as default implementation of privilege cache to improve authorization performance. However, rolling back to SimplePrivilegeCache does not work due to how Sentry creates the privilege cache.

      The solution is to create the privilege cache based on configured class name and handle different constructor inputs properly. 

      More test cases are added to verify that rollback works.

       

        Attachments

        1. SENTRY-2545.002.patch
          17 kB
          Na Li
        2. SENTRY-2545.001.patch
          17 kB
          Na Li

          Issue Links

            Activity

              People

              • Assignee:
                linaataustin Na Li
                Reporter:
                linaataustin Na Li
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: