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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.0
    • 1.5.0
    • None
    • 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
          2 kB
          shenguoquan
        2. SENTRY-362.patch
          3 kB
          shenguoquan
        3. SENTRY-362.patch
          2 kB
          shenguoquan
        4. SENTRY-362.patch
          3 kB
          Gregory Chanan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: