You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/02/15 06:46:41 UTC

[jira] [Created] (RANGER-1385) UnixAuthenticationService may fails in Widows as the "/" is different from "\"

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)