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

Rolling back Privilege Cache to SimplePrivilegeCache does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2.0, 2.3.0
    • Sentry
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: