You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Lenni Kuff (JIRA)" <ji...@apache.org> on 2014/04/03 19:01:30 UTC

[jira] [Created] (SENTRY-166) Sentry does not accept URIs with an equals sign (=) in path. Fails with llegalArgumentException: Invalid key value

Lenni Kuff created SENTRY-166:
---------------------------------

             Summary: Sentry does not accept URIs with an equals sign (=) in path. Fails with llegalArgumentException: Invalid key value
                 Key: SENTRY-166
                 URL: https://issues.apache.org/jira/browse/SENTRY-166
             Project: Sentry
          Issue Type: Bug
    Affects Versions: 1.2.0
            Reporter: Lenni Kuff
            Priority: Critical


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.

{code}
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)
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)