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

UpdateableAuthzPermissions has mutable static fields

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.8.0
    • 1.8.0, 2.0.0
    • Sentry

    Description

      UpdateableAuthzPermissions has the following code:

        public static final Map<String, FsAction> ACTION_MAPPING = new HashMap<String, FsAction>();
        
        static {
          ACTION_MAPPING.put("ALL", FsAction.ALL);
          ACTION_MAPPING.put("*", FsAction.ALL);
          ACTION_MAPPING.put("SELECT", FsAction.READ_EXECUTE);
          ACTION_MAPPING.put("select", FsAction.READ_EXECUTE);
          ACTION_MAPPING.put("INSERT", FsAction.WRITE_EXECUTE);
          ACTION_MAPPING.put("insert", FsAction.WRITE_EXECUTE);
        }
      
      

      It should use ImmutableMap instead.

      Attachments

        1. SENTRY-1663.001.patch
          3 kB
          Jan Hentschel

        Issue Links

          Activity

            People

              janh Jan Hentschel
              akolb Alex Kolbasov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment