Qiang Zhang created RANGER-1385:
-----------------------------------
Summary: UnixAuthenticationService may fails in Widows as the
"/" is different from "\"
Key: RANGER-1385
URL: https://issues.apache.org/jira/browse/RANGER-1385
Project: Ranger
Issue Type: Bug
Components: audit
Reporter: Qiang Zhang
Assignee: Qiang Zhang
Priority: Critical
UnixAuthenticationService may fails in Widows as the "/" is different from "\"
Problem:
The problem in windows ("/") is different from the expected in the test ("\");
thus, the test will sucess in unix system but fail in Windows systems.
Solution:
Change " ret = getClass().getResourceAsStream("/" + path); "
to "ret = getClass().getResourceAsStream(File.separator + path);"
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)