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

Understand the reason of the KeyValue class design

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Sentry
    • None

    Description

      The KeyValue class is used to split a key-value string that Sentry uses to understand permissions. The community has some concern around this class because a string parsing is done on the constructor and the equals() method was case-insensitive before 1.7, then case-sensitive in 1.8 (caused hbase-indexer test failures), then case-insensitive on 2.0.

      We should investigate if we can replace the KeyValue by a different more common class, such as apache commons Pair, and if we can find the reason about case sensitivity with other models.

      This is a task jira, and if we find improvements on the class or the code, then we should create another JIRA to do that.

      Attachments

        Issue Links

          Activity

            People

              spena Sergio Peña
              spena Sergio Peña
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: