You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/04/03 16:31:41 UTC

[jira] [Resolved] (RANGER-1479) Plugins couldnt load settings xml files from the classpath, if they are inside a jar

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

Colm O hEigeartaigh resolved RANGER-1479.
-----------------------------------------
    Resolution: Fixed

> Plugins couldnt load settings xml files from the classpath, if they are inside a jar
> ------------------------------------------------------------------------------------
>
>                 Key: RANGER-1479
>                 URL: https://issues.apache.org/jira/browse/RANGER-1479
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>    Affects Versions: 0.7.0
>            Reporter: Zsombor Gegesy
>            Assignee: Zsombor Gegesy
>              Labels: configuration, plugins
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER-1479-Fix-bug-in-ranger-security-audit-.xml-lo.patch
>
>
> RangerConfiguration first checks, if the necessary xml files are on the classpath, and after it tries to convert it to a file path, check that file is on the filesystem, and convert that path to back to URL. If the configurations are inside a jar, then this will fail very badly  (the resource url will be something file://config.jar!/ranger-services.xml )
> If the conversion is removed, it would work pretty nicely



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)