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

When sentry integrate into solr, the create instance of backend needs configure parameters from solrAuthzConf not hadoopConf

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.5.0
    • Component/s: None
    • Labels:
      None

      Description

      whatever Sentry Solr plugin integration with db store or file store, the create instance of DBProviderBackend of FIleProviderBackend should get the configuration from sentry-site.xml not hadoop configuration. The following code isn't correct:

      SolrAuthzBinding.java
          Configuration conf = getConf();
          providerBackend =(ProviderBackend) providerBackendConstructor.newInstance(new Object[] {conf, resourceName});
      

        Attachments

        1. SENTRY-362.patch
          3 kB
          Gregory Chanan
        2. SENTRY-362.patch
          2 kB
          shenguoquan
        3. SENTRY-362.patch
          3 kB
          shenguoquan
        4. SENTRY-362.patch
          2 kB
          shenguoquan

          Activity

            People

            • Assignee:
              guoquan shenguoquan
              Reporter:
              guoquan shenguoquan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: