You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2014/06/05 21:23:03 UTC

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

     [ https://issues.apache.org/jira/browse/SENTRY-166?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated SENTRY-166:
--------------------------------------

    Labels: grant/revoke  (was: )

> 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
>              Labels: grant/revoke
>
> 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}
> Repro:
> {code}
> create table sentry_test(i int) location '/test-warehouse/a=1';
> {code}



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