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:52:41 UTC

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

     [ https://issues.apache.org/jira/browse/RANGER-1385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Qiang Zhang updated RANGER-1385:
--------------------------------
    Attachment: 0001-RANGER-1385-UnixAuthenticationService-may-fails-in-W.patch

> 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
>         Attachments: 0001-RANGER-1385-UnixAuthenticationService-may-fails-in-W.patch
>
>
> 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)