@Balaji, #Madhan had added tests to assert and clarify behavior around 
precisely this sort of a question.

@Dale, I presume your question is about v0.5.  If so, please take a look at 
./agents-common/src/test/resources/resourcematcher/test_resourcematcher_path.json.
  In particular look at the following two test data sets in it:

  *   "value=/public/*test/*result; isRecursive=true; wildCard=true; 
ignoreCase=true"
  *   "value=/public/*test/*result; isRecursive=false; wildCard=true; 
ignoreCase=true"

The test data itself is fairly explanatory.  But if you must then you can 
execute the test file 
./agents-common/src/test/java/org/apache/ranger/plugin/resourcematcher/TestResourceMatcher.java
 which uses this test data, too.

Let us know if these don’t answer your question or if you find further room for 
improvement.

Thanks

From: Balaji Ganesan
Reply-To: 
"[email protected]<mailto:[email protected]>"
Date: Monday, August 10, 2015 at 1:42 PM
To: "[email protected]<mailto:[email protected]>"
Subject: Re: Resource path wildcards

Not sure if the community has tested all possible combinations of regex in a 
path. Did you get a chance to test this in your environment? If it is not 
working, you should file a JIRA

On Mon, Aug 10, 2015 at 9:27 AM, Bradman, Dale 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

To what extent should wild cards work for the resource path?
For example in my HDFS policy I would like to have a path as ‘ 
/apps/hive/warehouse/*/XX* ‘ . Should that work and if not could it possibly be 
a feature?

Thanks,
Dale

________________________________

Capgemini is a trading name used by the Capgemini Group of companies which 
includes Capgemini UK plc, a company registered in England and Wales (number 
943935) whose registered office is at No. 1, Forge End, Woking, Surrey, GU21 
6DB.
This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient, you are not authorized 
to read, print, retain, copy, disseminate, distribute, or use this message or 
any part thereof. If you receive this message in error, please notify the 
sender immediately and delete all copies of this message.

Reply via email to