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

Rolling back Privilege Cache to SimplePrivilegeCache does not work

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              linaataustin Na Li
              Reporter:
              linaataustin Na Li

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment