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

Sentry does not accept URIs with an equals sign (=) in path. Fails with llegalArgumentException: Invalid key value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.4.0
    • Component/s: None
    • Labels:

      Description

      Sentry does not accept URIs with an equals sign (=) in path. This is quite important for Impala/Hive because in many cases a partition location will have an equals sign in the path.

      java.lang.IllegalArgumentException: Invalid key value: URI=hdfs://c2102.hal.cloudera.com:8020/test-warehouse/a=1 [URI, hdfs://c2102.hal.cloudera.com:8020/test-warehouse/a, 1]
              at org.apache.sentry.provider.file.KeyValue.<init>(KeyValue.java:33)
              at org.apache.sentry.policy.db.DBWildcardPermission.<init>(DBWildcardPermission.java:67)
              at org.apache.sentry.policy.db.DBWildcardPermission$DBWildcardPermissionFactory.createPermission(DBWildcardPermission.java:178)
              at org.apache.sentry.provider.file.ResourceAuthorizationProvider.doHasAccess(ResourceAuthorizationProvider.java:106)
              at org.apache.sentry.provider.file.ResourceAuthorizationProvider.hasAccess(ResourceAuthorizationProvider.java:87)
      

      Repro:

      create table sentry_test(i int) location '/test-warehouse/a=1';
      

        Attachments

        1. SENTRY-166.patch
          6 kB
          Jarek Jarcec Cecho
        2. SENTRY-166.patch
          6 kB
          Jarek Jarcec Cecho

          Issue Links

            Activity

              People

              • Assignee:
                jarcec Jarek Jarcec Cecho
                Reporter:
                lskuff Lenni Kuff
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: