-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70973/#review216237
-----------------------------------------------------------




agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcher.java
Lines 151 (patched)
<https://reviews.apache.org/r/70973/#comment303368>

    If getScheme() returns null, consider returning false.



agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcher.java
Lines 196 (patched)
<https://reviews.apache.org/r/70973/#comment303369>

    Consider renaming this as getPathWithoutScheme()



agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcher.java
Lines 199 (patched)
<https://reviews.apache.org/r/70973/#comment303366>

    Please consider stripping whitespace from pathToCheck before substring 
operation.



agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcher.java
Lines 201 (patched)
<https://reviews.apache.org/r/70973/#comment303367>

    Please ensure that the pathToCheck starts with string in 'ret'. If it does 
then return substring following 'ret' string. In that case getPath() function 
is not needed.


- Abhay Kulkarni


On June 28, 2019, 10:44 p.m., Ramesh Mani wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70973/
> -----------------------------------------------------------
> 
> (Updated June 28, 2019, 10:44 p.m.)
> 
> 
> Review request for ranger, Don Bosco Durai, Gautam Borad, Abhay Kulkarni, 
> Madhan Neethiraj, Pradeep Agrawal, Selvamohan Neethiraj, Sailaja Polavarapu, 
> and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-2480
>     https://issues.apache.org/jira/browse/RANGER-2480
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> RANGER-2480:Hive URL Policy doesn't match if recursive flag is on for the url 
> resource
> 
> 
> Diffs
> -----
> 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcher.java
>  PRE-CREATION 
>   agents-common/src/main/resources/service-defs/ranger-servicedef-hive.json 
> 370ff56 
>   
> agents-common/src/test/java/org/apache/ranger/plugin/resourcematcher/RangerURLResourceMatcherTest.java
>  PRE-CREATION 
>   security-admin/db/mysql/optimized/current/ranger_core_db_mysql.sql 7aa9b3f 
>   security-admin/db/oracle/optimized/current/ranger_core_db_oracle.sql 
> 100ee9e 
>   security-admin/db/postgres/optimized/current/ranger_core_db_postgres.sql 
> eac6a75 
>   
> security-admin/db/sqlanywhere/optimized/current/ranger_core_db_sqlanywhere.sql
>  b836ff1 
>   security-admin/db/sqlserver/optimized/current/ranger_core_db_sqlserver.sql 
> cca959a 
>   
> security-admin/src/main/java/org/apache/ranger/patch/PatchForHiveServiceDefUpdate_J10030.java
>  PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/70973/diff/1/
> 
> 
> Testing
> -------
> 
> - Verified in LOCAL VM for Patch file upgrade 
> - Verified URL policies for HIVE Request.
> 
> 
> Thanks,
> 
> Ramesh Mani
> 
>

Reply via email to