Velmurugan Periasamy created ARGUS-75:
-----------------------------------------
Summary: Getting PatternSyntaxException on Windows while creating
HDFS policy
Key: ARGUS-75
URL: https://issues.apache.org/jira/browse/ARGUS-75
Project: Argus
Issue Type: Bug
Reporter: Velmurugan Periasamy
Getting {quote} java.util.regex.PatternSyntaxException: Unexpected internal
error near
index 1 {quote} while creating an HDFS policy with Policy Mgr and HDFS both
running on windows.
Resource Path used : /apps
The code in question :
{code}
for (String resourceName : resourceList) {
String policyPath = resourceName;
*String[] policyPathParts =
policyPath.split(File.separator);*
if(policyPathParts.length>1){
pathList.add(File.separator);
}
StringBuffer path = new StringBuffer();
for (int i = 1; i < policyPathParts.length - 1; i++) {
path.append(File.separator +
policyPathParts[i]);
pathList.add(path.toString());
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)