sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Jarcec Cecho (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SENTRY-166) Sentry does not accept URIs with an equals sign (=) in path. Fails with llegalArgumentException: Invalid key value
Date Thu, 05 Jun 2014 19:23:03 GMT

     [ 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)

Mime
View raw message